Skip to content

Commit ff0e981

Browse files
committed
kill mutant
1 parent 32abf9f commit ff0e981

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,14 @@ function doTemplated(): void {
7070
}
7171

7272
function getMixed(): mixed {}
73+
74+
function maybeCallable() {
75+
$f2 = 'Bug14249\assertIfTemplated';
76+
if (rand(0,1)) {
77+
$f2 = 'notCallable';
78+
}
79+
80+
$v = getMixed();
81+
$f2($v, false);
82+
assertType('mixed', $v);
83+
}

0 commit comments

Comments
 (0)