Skip to content

Commit d948ae8

Browse files
authored
Enable PHPStan Extensions outside of bleeding edge (#31)
1 parent 8a50ab8 commit d948ae8

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

extension.neon

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,15 @@
33
# These can be reused by third party packages by including 'vendor/composer/pcre/extension.neon'
44
# in your phpstan config
55

6-
conditionalTags:
7-
Composer\Pcre\PHPStan\PregMatchParameterOutTypeExtension:
8-
phpstan.staticMethodParameterOutTypeExtension: %featureToggles.narrowPregMatches%
9-
Composer\Pcre\PHPStan\PregMatchTypeSpecifyingExtension:
10-
phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension: %featureToggles.narrowPregMatches%
11-
Composer\Pcre\PHPStan\UnsafeStrictGroupsCallRule:
12-
phpstan.rules.rule: %featureToggles.narrowPregMatches%
13-
146
services:
157
-
168
class: Composer\Pcre\PHPStan\PregMatchParameterOutTypeExtension
9+
tags:
10+
- phpstan.staticMethodParameterOutTypeExtension
1711
-
1812
class: Composer\Pcre\PHPStan\PregMatchTypeSpecifyingExtension
13+
tags:
14+
- phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension
1915

2016
rules:
2117
- Composer\Pcre\PHPStan\UnsafeStrictGroupsCallRule

0 commit comments

Comments
 (0)