File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 5
5
use Aternos \Serializer \ArrayDeserializer ;
6
6
use Aternos \Serializer \DeserializerInterface ;
7
7
use Aternos \Serializer \Exceptions \IncorrectTypeException ;
8
+ use Aternos \Serializer \Exceptions \InvalidEnumBackingException ;
8
9
use Aternos \Serializer \Exceptions \MissingPropertyException ;
9
10
use Aternos \Serializer \Exceptions \UnsupportedTypeException ;
10
11
use InvalidArgumentException ;
@@ -45,6 +46,7 @@ public function __construct(
45
46
* @throws IncorrectTypeException if the type of the property is incorrect
46
47
* @throws MissingPropertyException if a required property is missing
47
48
* @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
48
50
* @throws JsonException if the data is invalid json
49
51
*/
50
52
public function deserialize (mixed $ data , string $ path = "" ): object
You can’t perform that action at this time.
0 commit comments