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 66use PHPStan \Type \Constant \ConstantIntegerType ;
77use PHPStan \Type \TypeCombinator ;
88use PHPStan \Type \Type ;
9+ use PhpParser \Node \Arg ;
910
1011final class PregMatchFlags
1112{
Original file line number Diff line number Diff line change @@ -39,12 +39,13 @@ function identicalMatch(string $s): void
3939 assertType ('array{}|array{string} ' , $ matches );
4040}
4141
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