Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Copy rules from phpstan-strict-rules's rules.neon
  • Loading branch information
BrianHenryIE committed Feb 1, 2026
commit b2add61522745bfa728720d16bbd5def9c44e640
16 changes: 16 additions & 0 deletions extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ parameters:
switchConditionsMatchingType: false
noVariableVariables: false
strictArrayFilter: false
booleansInLoopConditions: false
disallowedBacktick: false
disallowedEmpty: false
disallowedImplicitArrayCreation: false
disallowedShortTernary: false
strictFunctionCalls: false
dynamicCallOnStaticMethod: false
illegalConstructorMethodCall: false

# Add the schema from phpstan-strict-rules so it's available without loading the extension
# and the above configuration works.
Expand All @@ -48,4 +56,12 @@ parametersSchema:
switchConditionsMatchingType: anyOf(bool(), arrayOf(bool()))
noVariableVariables: anyOf(bool(), arrayOf(bool()))
strictArrayFilter: anyOf(bool(), arrayOf(bool()))
booleansInLoopConditions: anyOf(bool(), arrayOf(bool()))
disallowedBacktick: anyOf(bool(), arrayOf(bool()))
disallowedEmpty: anyOf(bool(), arrayOf(bool()))
disallowedImplicitArrayCreation: anyOf(bool(), arrayOf(bool()))
disallowedShortTernary: anyOf(bool(), arrayOf(bool()))
strictFunctionCalls: anyOf(bool(), arrayOf(bool()))
dynamicCallOnStaticMethod: anyOf(bool(), arrayOf(bool()))
illegalConstructorMethodCall: anyOf(bool(), arrayOf(bool()))
])
Loading