Skip to content

Commit

Permalink
add test for multiple flags
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Feb 6, 2022
1 parent 167df89 commit 55cc2d4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/PHPStan/Analyser/data/json-decode/json_object_as_array.php
Expand Up @@ -10,7 +10,17 @@ function ($mixed) {
assertType('mixed~stdClass', $value);
};

function ($mixed) {
$value = json_decode($mixed, null, 512, JSON_OBJECT_AS_ARRAY | JSON_BIGINT_AS_STRING);
assertType('mixed~stdClass', $value);
};

function ($mixed) {
$value = json_decode($mixed, null);
assertType('mixed', $value);
};

function ($mixed, $unknownFlags) {
$value = json_decode($mixed, null, 512, $unknownFlags);
assertType('mixed', $value);
};

0 comments on commit 55cc2d4

Please sign in to comment.