|
7 | 7 | // @see https://3v4l.org/YFlHF |
8 | 8 | function ($mixed) { |
9 | 9 | $value = json_decode($mixed, null, 512, JSON_OBJECT_AS_ARRAY); |
10 | | - assertType('mixed~stdClass', $value); |
| 10 | + assertType('array|bool|float|int|string|null', $value); |
11 | 11 | }; |
12 | 12 |
|
13 | 13 | function ($mixed) { |
14 | 14 | $flagsAsVariable = JSON_OBJECT_AS_ARRAY; |
15 | 15 |
|
16 | 16 | $value = json_decode($mixed, null, 512, $flagsAsVariable); |
17 | | - assertType('mixed~stdClass', $value); |
| 17 | + assertType('array|bool|float|int|string|null', $value); |
18 | 18 | }; |
19 | 19 |
|
20 | 20 | function ($mixed) { |
21 | 21 | $value = json_decode($mixed, null, 512, JSON_OBJECT_AS_ARRAY | JSON_BIGINT_AS_STRING); |
22 | | - assertType('mixed~stdClass', $value); |
| 22 | + assertType('array|bool|float|int|string|null', $value); |
23 | 23 | }; |
24 | 24 |
|
25 | 25 | function ($mixed) { |
26 | 26 | $value = json_decode($mixed, null); |
27 | | - assertType('mixed', $value); |
| 27 | + assertType('array|bool|float|int|stdClass|string|null', $value); |
28 | 28 | }; |
29 | 29 |
|
30 | 30 | function ($mixed, $unknownFlags) { |
31 | 31 | $value = json_decode($mixed, null, 512, $unknownFlags); |
32 | | - assertType('mixed', $value); |
| 32 | + assertType('array|bool|float|int|stdClass|string|null', $value); |
33 | 33 | }; |
0 commit comments