Skip to content

Commit

Permalink
Uncover everything behind the bleedingEdge flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 24, 2024
1 parent 93a4f02 commit c903386
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
14 changes: 6 additions & 8 deletions extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ parameters:
- terminate
- forward

conditionalTags:
PHPStan\Type\Nette\StringsMatchDynamicReturnTypeExtension:
phpstan.broker.dynamicStaticMethodReturnTypeExtension: %featureToggles.narrowPregMatches%
PHPStan\Type\Nette\StringsMatchAllDynamicReturnTypeExtension:
phpstan.broker.dynamicStaticMethodReturnTypeExtension: %featureToggles.narrowPregMatches%
PHPStan\Type\Nette\StringsReplaceCallbackClosureTypeExtension:
phpstan.staticMethodParameterClosureTypeExtension: %featureToggles.narrowPregMatches%

services:
-
class: PHPStan\Reflection\Nette\HtmlClassReflectionExtension
Expand Down Expand Up @@ -126,9 +118,15 @@ services:

-
class: PHPStan\Type\Nette\StringsMatchAllDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicStaticMethodReturnTypeExtension

-
class: PHPStan\Type\Nette\StringsMatchDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicStaticMethodReturnTypeExtension

-
class: PHPStan\Type\Nette\StringsReplaceCallbackClosureTypeExtension
tags:
- phpstan.staticMethodParameterClosureTypeExtension
7 changes: 1 addition & 6 deletions rules.neon
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ parametersSchema:

rules:
- PHPStan\Rule\Nette\DoNotExtendNetteObjectRule

conditionalTags:
PHPStan\Rule\Nette\RegularExpressionPatternRule:
phpstan.rules.rule: %featureToggles.bleedingEdge%
- PHPStan\Rule\Nette\RegularExpressionPatternRule

services:
-
Expand All @@ -28,5 +25,3 @@ services:
methods: %methodsThrowingExceptions%
tags:
- phpstan.rules.rule
-
class: PHPStan\Rule\Nette\RegularExpressionPatternRule

0 comments on commit c903386

Please sign in to comment.