add phpstan strict
This commit is contained in:
19
phpstan.neon
19
phpstan.neon
@@ -6,6 +6,20 @@ parameters:
|
||||
level: 8 # max is now 9
|
||||
checkMissingCallableSignature: true
|
||||
treatPhpDocTypesAsCertain: false
|
||||
strictRules:
|
||||
allRules: false
|
||||
disallowedLooseComparison: false
|
||||
booleansInConditions: false
|
||||
uselessCast: true
|
||||
requireParentConstructorCall: false
|
||||
disallowedConstructs: false
|
||||
overwriteVariablesWithLoop: false
|
||||
closureUsesThis: false
|
||||
matchingInheritedMethodNames: false
|
||||
numericOperandsInArithmeticOperators: false
|
||||
strictCalls: false
|
||||
switchConditionsMatchingType: false
|
||||
noVariableVariables: false
|
||||
paths:
|
||||
- %currentWorkingDirectory%/www
|
||||
bootstrapFiles:
|
||||
@@ -30,6 +44,9 @@ parameters:
|
||||
- www/admin/error_test.php
|
||||
# admin synlink files
|
||||
- www/admin/edit_*.php
|
||||
- www/admin/config.php
|
||||
# frotend symlink
|
||||
- www/frontend/*config.php
|
||||
# ignore admin header stuff
|
||||
# - www/includes/admin_header.php # ignore the admin include stuff
|
||||
- www/includes/admin_footer.php # ignore the admin include stuff
|
||||
@@ -43,6 +60,8 @@ parameters:
|
||||
- www/log
|
||||
- www/media
|
||||
- www/tmp
|
||||
# File uploader
|
||||
- www/lib/FileUpload
|
||||
# ignore composer
|
||||
- www/vendor
|
||||
# ignore errores with
|
||||
|
||||
Reference in New Issue
Block a user