diff --git a/src/SerializerInterface.php b/src/SerializerInterface.php index 6c07d27..5252987 100644 --- a/src/SerializerInterface.php +++ b/src/SerializerInterface.php @@ -20,7 +20,7 @@ public function serialize(mixed $data): string; * Deserializes data into the given type. * * @template TObject of object - * @template TType of null|class-string + * @template TType of null|class-string|string * * @psalm-param TType $type *