Skip to content

Commit e6fb2f2

Browse files
staabmSeldaek
authored andcommitted
utilize phpstan feature flag
1 parent 6e6c529 commit e6fb2f2

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

extension.neon

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
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+
612
services:
713
-
814
class: Composer\Pcre\PHPStan\PregMatchParameterOutTypeExtension
9-
tags:
10-
- phpstan.staticMethodParameterOutTypeExtension
1115
-
12-
class: Composer\Pcre\PHPStan\PregMatchTypeSpecifyingExtension
13-
tags:
14-
- phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension
16+
class: Composer\Pcre\PHPStan\PregMatchTypeSpecifyingExtension

tests/PHPStanTests/TypeInferenceTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public function testFileAsserts(
3737
public static function getAdditionalConfigFiles(): array
3838
{
3939
return [
40+
'phar://' . __DIR__ . '/../../vendor/phpstan/phpstan/phpstan.phar/conf/bleedingEdge.neon',
4041
__DIR__ . '/../../extension.neon',
4142
];
4243
}

0 commit comments

Comments
 (0)