mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Lint: Disallow usage of deprecated functions (#13267)
This commit is contained in:
31
phpstan-deprecated.neon
Normal file
31
phpstan-deprecated.neon
Normal 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'
|
Reference in New Issue
Block a user