mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
chore(tooling): make PHPStan rules more strict
This commit is contained in:
parent
01654288b1
commit
7a8781946a
1 changed files with 23 additions and 2 deletions
25
phpstan.neon
25
phpstan.neon
|
|
@ -1,14 +1,35 @@
|
|||
includes:
|
||||
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
|
||||
- vendor/larastan/larastan/extension.neon
|
||||
- vendor/nesbot/carbon/extension.neon
|
||||
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
|
||||
- vendor/phpstan/phpstan-strict-rules/rules.neon
|
||||
|
||||
parameters:
|
||||
level: max
|
||||
checkModelProperties: true
|
||||
checkOctaneCompatibility: true
|
||||
checkMissingCallableSignature: true
|
||||
checkTooWideReturnTypesInProtectedAndPublicMethods: true
|
||||
rememberPossiblyImpureFunctionValues: false
|
||||
checkBenevolentUnionTypes: true
|
||||
reportPossiblyNonexistentGeneralArrayOffset: true
|
||||
reportPossiblyNonexistentConstantArrayOffset: true
|
||||
reportAlwaysTrueInLastCondition: true
|
||||
reportAnyTypeWideningInVarTag: true
|
||||
tipsOfTheDay: false
|
||||
tmpDir: ./storage/phpstan
|
||||
paths:
|
||||
- app
|
||||
- bootstrap
|
||||
- config
|
||||
- database
|
||||
- public
|
||||
- resources
|
||||
- routes
|
||||
|
||||
level: max
|
||||
excludePaths:
|
||||
- bootstrap/cache
|
||||
strictRules:
|
||||
strictArrayFilter: false
|
||||
ignoreErrors:
|
||||
- '#Dynamic call to static method Illuminate\\Http\\Request::validate\(\)#'
|
||||
|
|
|
|||
Loading…
Reference in a new issue