Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

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
Split strictCalls into strictFunctionCalls, dynamicCallOnStaticMethod…
…, dynamicCallOnStaticMethodsCallable
  • Loading branch information
ruudk committed Sep 24, 2024
commit a2380965cf0774588e84f85b4630cc841ef6ff6f
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ parameters:
closureUsesThis: false
matchingInheritedMethodNames: false
numericOperandsInArithmeticOperators: false
strictCalls: false
strictFunctionCalls: false
dynamicCallOnStaticMethod: false
dynamicCallOnStaticMethodsCallable: false
switchConditionsMatchingType: false
noVariableVariables: false
strictArrayFilter: false
Expand Down
14 changes: 9 additions & 5 deletions rules.neon
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ parameters:
closureUsesThis: %strictRules.allRules%
matchingInheritedMethodNames: %strictRules.allRules%
numericOperandsInArithmeticOperators: %strictRules.allRules%
strictCalls: %strictRules.allRules%
strictFunctionCalls: %strictRules.allRules%
dynamicCallOnStaticMethod: %strictRules.allRules%
dynamicCallOnStaticMethodsCallable: %strictRules.allRules%
switchConditionsMatchingType: %strictRules.allRules%
noVariableVariables: %strictRules.allRules%
strictArrayFilter: [%strictRules.allRules%, %featureToggles.bleedingEdge%]
Expand All @@ -49,7 +51,9 @@ parametersSchema:
closureUsesThis: anyOf(bool(), arrayOf(bool()))
matchingInheritedMethodNames: anyOf(bool(), arrayOf(bool()))
numericOperandsInArithmeticOperators: anyOf(bool(), arrayOf(bool()))
strictCalls: anyOf(bool(), arrayOf(bool()))
strictFunctionCalls: anyOf(bool(), arrayOf(bool()))
dynamicCallOnStaticMethod: anyOf(bool(), arrayOf(bool()))
dynamicCallOnStaticMethodsCallable: anyOf(bool(), arrayOf(bool()))
switchConditionsMatchingType: anyOf(bool(), arrayOf(bool()))
noVariableVariables: anyOf(bool(), arrayOf(bool()))
strictArrayFilter: anyOf(bool(), arrayOf(bool()))
Expand Down Expand Up @@ -113,11 +117,11 @@ conditionalTags:
PHPStan\Rules\Operators\OperandsInArithmeticSubtractionRule:
phpstan.rules.rule: %strictRules.numericOperandsInArithmeticOperators%
PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsRule:
phpstan.rules.rule: %strictRules.strictCalls%
phpstan.rules.rule: %strictRules.dynamicCallOnStaticMethod%
PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsCallableRule:
phpstan.rules.rule: %strictRules.strictCalls%
phpstan.rules.rule: %strictRules.dynamicCallOnStaticMethodsCallable%
PHPStan\Rules\StrictCalls\StrictFunctionCallsRule:
phpstan.rules.rule: %strictRules.strictCalls%
phpstan.rules.rule: %strictRules.strictFunctionCalls%
PHPStan\Rules\SwitchConditions\MatchingTypeInSwitchCaseConditionRule:
phpstan.rules.rule: %strictRules.switchConditionsMatchingType%
PHPStan\Rules\VariableVariables\VariableMethodCallRule:
Expand Down