Lint: Disallow usage of deprecated functions (#13267)

This commit is contained in:
Jellyfrog
2021-09-23 21:27:14 +02:00
committed by GitHub
parent 9eecca51c7
commit be3d3d171d
5 changed files with 3930 additions and 1 deletions

31
phpstan-deprecated.neon Normal file
View File

@@ -0,0 +1,31 @@
includes:
- phpstan-baseline-deprecated.neon
- vendor/spaze/phpstan-disallowed-calls/extension.neon
parameters:
customRulesetUsed: true
reportUnmatchedIgnoredErrors: false
paths:
- LibreNMS
- bootstrap
- cache
- html
- storage
- app
- config
- database
- doc
- includes
- licenses
- misc
- resources
- routes
- sql-schema
- tests
disallowedFunctionCalls:
-
function: 'db*()'
message: 'use Eloquent instead; https://laravel.com/docs/8.x/eloquent'