Skip to content

Commit 66e3aa0

Browse files
TomasVotrubaondrejmirtes
authored andcommitted
add test for multiple flags
1 parent 665e9da commit 66e3aa0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@ function ($mixed) {
1010
assertType('mixed~stdClass', $value);
1111
};
1212

13+
function ($mixed) {
14+
$value = json_decode($mixed, null, 512, JSON_OBJECT_AS_ARRAY | JSON_BIGINT_AS_STRING);
15+
assertType('mixed~stdClass', $value);
16+
};
17+
1318
function ($mixed) {
1419
$value = json_decode($mixed, null);
1520
assertType('mixed', $value);
1621
};
22+
23+
function ($mixed, $unknownFlags) {
24+
$value = json_decode($mixed, null, 512, $unknownFlags);
25+
assertType('mixed', $value);
26+
};

0 commit comments

Comments
 (0)