Skip to content

Commit d524680

Browse files
committed
Add missing throws tag to JsonDeserializer
1 parent 3848c94 commit d524680

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Json/JsonDeserializer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Aternos\Serializer\ArrayDeserializer;
66
use Aternos\Serializer\DeserializerInterface;
77
use Aternos\Serializer\Exceptions\IncorrectTypeException;
8+
use Aternos\Serializer\Exceptions\InvalidEnumBackingException;
89
use Aternos\Serializer\Exceptions\MissingPropertyException;
910
use Aternos\Serializer\Exceptions\UnsupportedTypeException;
1011
use InvalidArgumentException;
@@ -45,6 +46,7 @@ public function __construct(
4546
* @throws IncorrectTypeException if the type of the property is incorrect
4647
* @throws MissingPropertyException if a required property is missing
4748
* @throws UnsupportedTypeException if the type of the property is unsupported
49+
* @throws InvalidEnumBackingException if the target class is an enum, but the serialized data is not a valid backing value
4850
* @throws JsonException if the data is invalid json
4951
*/
5052
public function deserialize(mixed $data, string $path = ""): object

0 commit comments

Comments
 (0)