mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
- update rules to the latest Larastan and PHPStan version - group rules with comments for easier updating in the future - reorder rules and includes
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
includes:
|
|
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
|
|
- vendor/phpstan/phpstan-strict-rules/rules.neon
|
|
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
|
|
- vendor/larastan/larastan/extension.neon
|
|
- vendor/nesbot/carbon/extension.neon
|
|
|
|
parameters:
|
|
level: max
|
|
|
|
# Additional Core PHPStan Rules
|
|
checkTooWideReturnTypesInProtectedAndPublicMethods: true
|
|
checkBenevolentUnionTypes: true
|
|
reportPossiblyNonexistentGeneralArrayOffset: true
|
|
reportPossiblyNonexistentConstantArrayOffset: true
|
|
reportAnyTypeWideningInVarTag: true
|
|
checkMissingCallableSignature: true
|
|
tipsOfTheDay: false
|
|
|
|
# Additional Larastan Rules
|
|
noUnnecessaryEnumerableToArrayCalls: true
|
|
checkModelProperties: true
|
|
checkOctaneCompatibility: true
|
|
checkModelMethodVisibility: true
|
|
checkAuthCallsWhenInRequestScope: true
|
|
checkConfigTypes: true
|
|
|
|
tmpDir: ./storage/phpstan
|
|
paths:
|
|
- app
|
|
- bootstrap
|
|
- config
|
|
- database
|
|
- public
|
|
- resources
|
|
- routes
|
|
excludePaths:
|
|
- bootstrap/cache
|
|
strictRules:
|
|
strictArrayFilter: false
|
|
ignoreErrors:
|
|
# - '#Dynamic call to static method Illuminate\\Http\\Request::validate\(\)#'
|