chore(tooling): make PHPStan rules more strict

This commit is contained in:
peaklabs-dev 2025-03-30 01:36:02 +01:00
parent 01654288b1
commit 7a8781946a
No known key found for this signature in database

View file

@ -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\(\)#'