File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 6
6
use PHPStan \Type \Constant \ConstantIntegerType ;
7
7
use PHPStan \Type \TypeCombinator ;
8
8
use PHPStan \Type \Type ;
9
+ use PhpParser \Node \Arg ;
9
10
10
11
final class PregMatchFlags
11
12
{
Original file line number Diff line number Diff line change @@ -39,12 +39,13 @@ function identicalMatch(string $s): void
39
39
assertType ('array{}|array{string} ' , $ matches );
40
40
}
41
41
42
- function equalMatch (string $ s ): void
43
- {
44
- if (Preg::match ('/Price: /i ' , $ s , $ matches ) == 1 ) {
45
- assertType ('array{string} ' , $ matches );
46
- } else {
47
- assertType ('array{} ' , $ matches );
48
- }
49
- assertType ('array{}|array{string} ' , $ matches );
50
- }
42
+ // disabled until https://github.com/phpstan/phpstan-src/pull/3185 can be resolved
43
+ //function equalMatch(string $s): void
44
+ //{
45
+ // if (Preg::match('/Price: /i', $s, $matches) == 1) {
46
+ // assertType('array{string}', $matches);
47
+ // } else {
48
+ // assertType('array{}', $matches);
49
+ // }
50
+ // assertType('array{}|array{string}', $matches);
51
+ //}
You can’t perform that action at this time.
0 commit comments