Skip to content

Commit d665722

Browse files
TomasVotrubaondrejmirtes
authored andcommitted
add json_decode false
1 parent 581f51a commit d665722

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/PHPStan/Analyser/data/json-decode/narrow_type.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ function ($mixed) {
2727
$value = json_decode($mixed);
2828
assertType('mixed', $value);
2929
};
30+
31+
function ($mixed) {
32+
$value = json_decode($mixed, false);
33+
assertType('mixed', $value);
34+
};

0 commit comments

Comments
 (0)