Skip to content

Commit f6413f3

Browse files
committed
Update preg_match_shapes.php
1 parent e277c11 commit f6413f3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/PHPStan/Analyser/nsrt/preg_match_shapes.php

+6
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,12 @@ function (string $s): void {
637637
}
638638
};
639639

640+
function (string $s): void {
641+
if (preg_match('/( .* )/x', $s, $matches)) {
642+
assertType('array{string, string}', $matches);
643+
}
644+
};
645+
640646
function (string $s): void {
641647
if (preg_match('/( .+ )/x', $s, $matches)) {
642648
assertType('array{string, non-empty-string}', $matches);

0 commit comments

Comments
 (0)