Skip to content

Commit c903386

Browse files
committed
Uncover everything behind the bleedingEdge flag
1 parent 93a4f02 commit c903386

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

extension.neon

+6-8
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,6 @@ parameters:
5353
- terminate
5454
- forward
5555

56-
conditionalTags:
57-
PHPStan\Type\Nette\StringsMatchDynamicReturnTypeExtension:
58-
phpstan.broker.dynamicStaticMethodReturnTypeExtension: %featureToggles.narrowPregMatches%
59-
PHPStan\Type\Nette\StringsMatchAllDynamicReturnTypeExtension:
60-
phpstan.broker.dynamicStaticMethodReturnTypeExtension: %featureToggles.narrowPregMatches%
61-
PHPStan\Type\Nette\StringsReplaceCallbackClosureTypeExtension:
62-
phpstan.staticMethodParameterClosureTypeExtension: %featureToggles.narrowPregMatches%
63-
6456
services:
6557
-
6658
class: PHPStan\Reflection\Nette\HtmlClassReflectionExtension
@@ -126,9 +118,15 @@ services:
126118

127119
-
128120
class: PHPStan\Type\Nette\StringsMatchAllDynamicReturnTypeExtension
121+
tags:
122+
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
129123

130124
-
131125
class: PHPStan\Type\Nette\StringsMatchDynamicReturnTypeExtension
126+
tags:
127+
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
132128

133129
-
134130
class: PHPStan\Type\Nette\StringsReplaceCallbackClosureTypeExtension
131+
tags:
132+
- phpstan.staticMethodParameterClosureTypeExtension

rules.neon

+1-6
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ parametersSchema:
1616

1717
rules:
1818
- PHPStan\Rule\Nette\DoNotExtendNetteObjectRule
19-
20-
conditionalTags:
21-
PHPStan\Rule\Nette\RegularExpressionPatternRule:
22-
phpstan.rules.rule: %featureToggles.bleedingEdge%
19+
- PHPStan\Rule\Nette\RegularExpressionPatternRule
2320

2421
services:
2522
-
@@ -28,5 +25,3 @@ services:
2825
methods: %methodsThrowingExceptions%
2926
tags:
3027
- phpstan.rules.rule
31-
-
32-
class: PHPStan\Rule\Nette\RegularExpressionPatternRule

0 commit comments

Comments
 (0)