Skip to content

Commit b2add61

Browse files
committed
Copy rules from phpstan-strict-rules's rules.neon
1 parent d87b194 commit b2add61

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

extension.neon

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ parameters:
2929
switchConditionsMatchingType: false
3030
noVariableVariables: false
3131
strictArrayFilter: false
32+
booleansInLoopConditions: false
33+
disallowedBacktick: false
34+
disallowedEmpty: false
35+
disallowedImplicitArrayCreation: false
36+
disallowedShortTernary: false
37+
strictFunctionCalls: false
38+
dynamicCallOnStaticMethod: false
39+
illegalConstructorMethodCall: false
3240

3341
# Add the schema from phpstan-strict-rules so it's available without loading the extension
3442
# and the above configuration works.
@@ -48,4 +56,12 @@ parametersSchema:
4856
switchConditionsMatchingType: anyOf(bool(), arrayOf(bool()))
4957
noVariableVariables: anyOf(bool(), arrayOf(bool()))
5058
strictArrayFilter: anyOf(bool(), arrayOf(bool()))
59+
booleansInLoopConditions: anyOf(bool(), arrayOf(bool()))
60+
disallowedBacktick: anyOf(bool(), arrayOf(bool()))
61+
disallowedEmpty: anyOf(bool(), arrayOf(bool()))
62+
disallowedImplicitArrayCreation: anyOf(bool(), arrayOf(bool()))
63+
disallowedShortTernary: anyOf(bool(), arrayOf(bool()))
64+
strictFunctionCalls: anyOf(bool(), arrayOf(bool()))
65+
dynamicCallOnStaticMethod: anyOf(bool(), arrayOf(bool()))
66+
illegalConstructorMethodCall: anyOf(bool(), arrayOf(bool()))
5167
])

0 commit comments

Comments
 (0)