Skip to content

Commit a238096

Browse files
committed
Split strictCalls into strictFunctionCalls, dynamicCallOnStaticMethod, dynamicCallOnStaticMethodsCallable
1 parent 39bc5af commit a238096

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ parameters:
7474
closureUsesThis: false
7575
matchingInheritedMethodNames: false
7676
numericOperandsInArithmeticOperators: false
77-
strictCalls: false
77+
strictFunctionCalls: false
78+
dynamicCallOnStaticMethod: false
79+
dynamicCallOnStaticMethodsCallable: false
7880
switchConditionsMatchingType: false
7981
noVariableVariables: false
8082
strictArrayFilter: false

rules.neon

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ parameters:
2929
closureUsesThis: %strictRules.allRules%
3030
matchingInheritedMethodNames: %strictRules.allRules%
3131
numericOperandsInArithmeticOperators: %strictRules.allRules%
32-
strictCalls: %strictRules.allRules%
32+
strictFunctionCalls: %strictRules.allRules%
33+
dynamicCallOnStaticMethod: %strictRules.allRules%
34+
dynamicCallOnStaticMethodsCallable: %strictRules.allRules%
3335
switchConditionsMatchingType: %strictRules.allRules%
3436
noVariableVariables: %strictRules.allRules%
3537
strictArrayFilter: [%strictRules.allRules%, %featureToggles.bleedingEdge%]
@@ -49,7 +51,9 @@ parametersSchema:
4951
closureUsesThis: anyOf(bool(), arrayOf(bool()))
5052
matchingInheritedMethodNames: anyOf(bool(), arrayOf(bool()))
5153
numericOperandsInArithmeticOperators: anyOf(bool(), arrayOf(bool()))
52-
strictCalls: anyOf(bool(), arrayOf(bool()))
54+
strictFunctionCalls: anyOf(bool(), arrayOf(bool()))
55+
dynamicCallOnStaticMethod: anyOf(bool(), arrayOf(bool()))
56+
dynamicCallOnStaticMethodsCallable: anyOf(bool(), arrayOf(bool()))
5357
switchConditionsMatchingType: anyOf(bool(), arrayOf(bool()))
5458
noVariableVariables: anyOf(bool(), arrayOf(bool()))
5559
strictArrayFilter: anyOf(bool(), arrayOf(bool()))
@@ -113,11 +117,11 @@ conditionalTags:
113117
PHPStan\Rules\Operators\OperandsInArithmeticSubtractionRule:
114118
phpstan.rules.rule: %strictRules.numericOperandsInArithmeticOperators%
115119
PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsRule:
116-
phpstan.rules.rule: %strictRules.strictCalls%
120+
phpstan.rules.rule: %strictRules.dynamicCallOnStaticMethod%
117121
PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsCallableRule:
118-
phpstan.rules.rule: %strictRules.strictCalls%
122+
phpstan.rules.rule: %strictRules.dynamicCallOnStaticMethodsCallable%
119123
PHPStan\Rules\StrictCalls\StrictFunctionCallsRule:
120-
phpstan.rules.rule: %strictRules.strictCalls%
124+
phpstan.rules.rule: %strictRules.strictFunctionCalls%
121125
PHPStan\Rules\SwitchConditions\MatchingTypeInSwitchCaseConditionRule:
122126
phpstan.rules.rule: %strictRules.switchConditionsMatchingType%
123127
PHPStan\Rules\VariableVariables\VariableMethodCallRule:

0 commit comments

Comments
 (0)