Skip to content

Commit 8fab425

Browse files
committed
Update preg_replace_callback_shapes-php72.php
1 parent b00bcb5 commit 8fab425

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/PHPStan/Analyser/nsrt/preg_replace_callback_shapes-php72.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function (string $s): void {
88
preg_replace_callback(
99
$s,
1010
function ($matches) {
11-
assertType('array{string, string}', $matches);
11+
assertType('array<string>', $matches);
1212
return '';
1313
},
1414
$s
@@ -19,7 +19,7 @@ function (string $s): void {
1919
preg_replace_callback(
2020
'|<p>(\s*)\w|',
2121
function ($matches) {
22-
assertType('array{string, string}', $matches);
22+
assertType('array{non-falsy-string, string}', $matches);
2323
return '';
2424
},
2525
$s

0 commit comments

Comments
 (0)