add phpstan strict

This commit is contained in:
Clemens Schwaighofer
2023-02-28 06:39:36 +09:00
parent 710a48abcd
commit 537bc0a477
64 changed files with 4493 additions and 6 deletions

View File

@@ -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