@@ -36,7 +36,7 @@ |
||
36 | 36 | * Factory constructor that handles nulls |
37 | 37 | * |
38 | 38 | * @param mixed $value |
39 | - * @return JsonNull|JsonPrimitive |
|
39 | + * @return JsonElement |
|
40 | 40 | */ |
41 | 41 | public static function create($value) |
42 | 42 | { |
@@ -22,7 +22,7 @@ |
||
22 | 22 | * Read the next value, convert it to its type and return it |
23 | 23 | * |
24 | 24 | * @param JsonReadable $reader |
25 | - * @return mixed |
|
25 | + * @return null|boolean |
|
26 | 26 | */ |
27 | 27 | public function read(JsonReadable $reader): ?bool |
28 | 28 | { |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * Read the next value, convert it to its type and return it |
29 | 29 | * |
30 | 30 | * @param JsonReadable $reader |
31 | - * @return mixed |
|
31 | + * @return JsonElement |
|
32 | 32 | * @throws \LogicException If the token can not be handled |
33 | 33 | */ |
34 | 34 | public function read(JsonReadable $reader): JsonElement |
@@ -22,7 +22,7 @@ |
||
22 | 22 | * Read the next value, convert it to its type and return it |
23 | 23 | * |
24 | 24 | * @param JsonReadable $reader |
25 | - * @return mixed |
|
25 | + * @return null|string |
|
26 | 26 | */ |
27 | 27 | public function read(JsonReadable $reader): ?string |
28 | 28 | { |
@@ -94,6 +94,7 @@ |
||
94 | 94 | * Sets whether nulls are serialized |
95 | 95 | * |
96 | 96 | * @param bool $serializeNull |
97 | + * @return void |
|
97 | 98 | */ |
98 | 99 | public function setSerializeNull(bool $serializeNull): void; |
99 | 100 | } |
@@ -374,7 +374,7 @@ |
||
374 | 374 | /** |
375 | 375 | * Pop the last element off the stack and return it |
376 | 376 | * |
377 | - * @return JsonElement|Iterator |
|
377 | + * @return JsonObject |
|
378 | 378 | */ |
379 | 379 | private function pop() |
380 | 380 | { |