Skip to content

Commit 141f895

Browse files
Configure phpstan/phpstan-strict-rules
1 parent 6494e09 commit 141f895

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

phpstan.neon

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@ parameters:
55

66
treatPhpDocTypesAsCertain: false
77

8+
strictRules:
9+
allRules: false
10+
booleansInConditions: true
11+
closureUsesThis: true
12+
disallowedBacktick: true
13+
disallowedEmpty: true
14+
disallowedImplicitArrayCreation: true
15+
disallowedLooseComparison: true
16+
disallowedShortTernary: true
17+
illegalConstructorMethodCall: true
18+
matchingInheritedMethodNames: true
19+
noVariableVariables: true
20+
numericOperandsInArithmeticOperators: true
21+
overwriteVariablesWithLoop: true
22+
requireParentConstructorCall: true
23+
strictArrayFilter: true
24+
strictFunctionCalls: true
25+
switchConditionsMatchingType: true
26+
uselessCast: true
27+
828
ignoreErrors:
929
# ignore errors caused by defensive programming
1030
- '#Call to function assert\(\) with true will always evaluate to true.#'

0 commit comments

Comments
 (0)