Skip to content

Commit 8db7e92

Browse files
committed
Moved illegalConstructorMethodCall rules from phpstan to phpstan-strict-rules
1 parent 4393881 commit 8db7e92

9 files changed

+0
-377
lines changed

conf/config.level2.neon

-10
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ rules:
6666
- PHPStan\Rules\Pure\PureFunctionRule
6767
- PHPStan\Rules\Pure\PureMethodRule
6868

69-
conditionalTags:
70-
PHPStan\Rules\Methods\IllegalConstructorMethodCallRule:
71-
phpstan.rules.rule: %featureToggles.illegalConstructorMethodCall%
72-
PHPStan\Rules\Methods\IllegalConstructorStaticCallRule:
73-
phpstan.rules.rule: %featureToggles.illegalConstructorMethodCall%
74-
7569
services:
7670
-
7771
class: PHPStan\Rules\Classes\MixinRule
@@ -97,10 +91,6 @@ services:
9791
tags:
9892
- phpstan.rules.rule
9993

100-
-
101-
class: PHPStan\Rules\Methods\IllegalConstructorMethodCallRule
102-
-
103-
class: PHPStan\Rules\Methods\IllegalConstructorStaticCallRule
10494
-
10595
class: PHPStan\Rules\PhpDoc\InvalidPhpDocTagValueRule
10696
tags:

conf/config.neon

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ parameters:
2323
featureToggles:
2424
bleedingEdge: false
2525
skipCheckGenericClasses: []
26-
illegalConstructorMethodCall: false
2726
stricterFunctionMap: false
2827
fileExtensions:
2928
- php

conf/parametersSchema.neon

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ parametersSchema:
2929
featureToggles: structure([
3030
bleedingEdge: bool(),
3131
skipCheckGenericClasses: listOf(string()),
32-
illegalConstructorMethodCall: bool(),
3332
stricterFunctionMap: bool()
3433
])
3534
fileExtensions: listOf(string())

src/Rules/Methods/IllegalConstructorMethodCallRule.php

-34
This file was deleted.

src/Rules/Methods/IllegalConstructorStaticCallRule.php

-92
This file was deleted.

tests/PHPStan/Rules/Methods/IllegalConstructorMethodCallRuleTest.php

-37
This file was deleted.

tests/PHPStan/Rules/Methods/IllegalConstructorStaticCallRuleTest.php

-59
This file was deleted.

tests/PHPStan/Rules/Methods/data/bug-9577.php

-40
This file was deleted.

0 commit comments

Comments
 (0)