Skip to content

Commit e52e907

Browse files
committed
more tests
1 parent 1ff93d2 commit e52e907

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎tests/PHPStan/Rules/Functions/data/bug-3889-named-args.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,9 @@ function doFoo(string $s, bool $b): void
1212

1313
$r = $b ? [] : ['x'];
1414
str_replace(['a', 'b', 'c'], $r, $s);
15+
16+
$r = $b ? ['x'] : ['x', 'y', 'z'];
17+
str_replace(['a', 'b', 'c'], $r, $s);
18+
19+
str_replace(['a', 'b', 'c'], ['x', 'y', 'z'], $s);
1520
}

0 commit comments

Comments
 (0)