diff --git a/extension.neon b/extension.neon index 35cbae0..e36da4b 100644 --- a/extension.neon +++ b/extension.neon @@ -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 @@ -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 diff --git a/rules.neon b/rules.neon index a34648d..f3b58f0 100644 --- a/rules.neon +++ b/rules.neon @@ -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: - @@ -28,5 +25,3 @@ services: methods: %methodsThrowingExceptions% tags: - phpstan.rules.rule - - - class: PHPStan\Rule\Nette\RegularExpressionPatternRule