File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,6 @@ conditionalTags:
1616 phpstan.rules.rule : %featureToggles.newStaticInAbstractClassStaticMethod%
1717
1818services :
19- -
20- class : PHPStan\Rules\Classes\ClassConstantRule
21-
2219 -
2320 class : PHPStan\Rules\Classes\NewStaticInAbstractClassStaticMethodRule
2421
Original file line number Diff line number Diff line change 99use PhpParser \Node \Scalar \String_ ;
1010use PHPStan \Analyser \NullsafeOperatorHelper ;
1111use PHPStan \Analyser \Scope ;
12+ use PHPStan \DependencyInjection \AutowiredParameter ;
1213use PHPStan \DependencyInjection \RegisteredRule ;
1314use PHPStan \Internal \SprintfHelper ;
1415use PHPStan \Php \PhpVersion ;
@@ -43,7 +44,8 @@ public function __construct(
4344 private RuleLevelHelper $ ruleLevelHelper ,
4445 private ClassNameCheck $ classCheck ,
4546 private PhpVersion $ phpVersion ,
46- private bool $ checkNonStringableDynamicAccess = true ,
47+ #[AutowiredParameter(ref: '%featureToggles.checkNonStringableDynamicAccess% ' )]
48+ private bool $ checkNonStringableDynamicAccess ,
4749 )
4850 {
4951 }
You can’t perform that action at this time.
0 commit comments