Skip to content

Commit 183443e

Browse files
authored
Merge branch refs/heads/1.12.x into 2.0.x
2 parents 0bc7327 + 2105058 commit 183443e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/PHPStan/Analyser/nsrt/bug-11699.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,12 @@ function doFoo3():void {
4040
assertType("'.'", $match['AB']);
4141
}
4242
}
43+
44+
function doFoo4():void {
45+
$string = 'Foo.bar';
46+
$match = [];
47+
$result = preg_match('~(?<AB>[^\~,\?\.])~', $string, $match);
48+
if ($result === 1) {
49+
assertType("non-empty-string", $match['AB']);
50+
}
51+
}

0 commit comments

Comments
 (0)