From 5547fb854897a344ec3c55da4eb2577376aaf4ff Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 6 Feb 2022 13:39:57 +0100 Subject: [PATCH] add test for multiple flags --- .../Analyser/data/json-decode/json_object_as_array.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/PHPStan/Analyser/data/json-decode/json_object_as_array.php b/tests/PHPStan/Analyser/data/json-decode/json_object_as_array.php index 895ff5e5ced..83cdd506fb6 100644 --- a/tests/PHPStan/Analyser/data/json-decode/json_object_as_array.php +++ b/tests/PHPStan/Analyser/data/json-decode/json_object_as_array.php @@ -10,6 +10,11 @@ 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);