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:
16
16
phpstan.rules.rule : %featureToggles.newStaticInAbstractClassStaticMethod%
17
17
18
18
services :
19
- -
20
- class : PHPStan\Rules\Classes\ClassConstantRule
21
-
22
19
-
23
20
class : PHPStan\Rules\Classes\NewStaticInAbstractClassStaticMethodRule
24
21
Original file line number Diff line number Diff line change 9
9
use PhpParser \Node \Scalar \String_ ;
10
10
use PHPStan \Analyser \NullsafeOperatorHelper ;
11
11
use PHPStan \Analyser \Scope ;
12
+ use PHPStan \DependencyInjection \AutowiredParameter ;
12
13
use PHPStan \DependencyInjection \RegisteredRule ;
13
14
use PHPStan \Internal \SprintfHelper ;
14
15
use PHPStan \Php \PhpVersion ;
@@ -43,7 +44,8 @@ public function __construct(
43
44
private RuleLevelHelper $ ruleLevelHelper ,
44
45
private ClassNameCheck $ classCheck ,
45
46
private PhpVersion $ phpVersion ,
46
- private bool $ checkNonStringableDynamicAccess = true ,
47
+ #[AutowiredParameter(ref: '%featureToggles.checkNonStringableDynamicAccess% ' )]
48
+ private bool $ checkNonStringableDynamicAccess ,
47
49
)
48
50
{
49
51
}
You can’t perform that action at this time.
0 commit comments