diff --git a/tests/Fixtures/ObjectWithEnums.php b/tests/Fixtures/ObjectWithEnums.php index c3c6fee79..3eaeee5e2 100644 --- a/tests/Fixtures/ObjectWithEnums.php +++ b/tests/Fixtures/ObjectWithEnums.php @@ -14,11 +14,13 @@ class ObjectWithEnums /** * @Serializer\Type("enum") */ + #[Serializer\Type(name: 'enum<' . Suit::class . ", 'name'>")] public Suit $ordinary; /** * @Serializer\Type("enum") */ + #[Serializer\Type(name: 'enum<' . BackedSuit::class . ", 'value'>")] public BackedSuit $backedValue; /** @@ -26,21 +28,25 @@ class ObjectWithEnums * * @Serializer\Type("enum<'JMS\Serializer\Tests\Fixtures\Enum\BackedSuit'>") */ + #[Serializer\Type(name: "enum<'" . BackedSuit::class . "'>")] public BackedSuit $backedWithoutParam; /** * @Serializer\Type("array>") */ + #[Serializer\Type(name: 'array>')] public array $ordinaryArray; /** * @Serializer\Type("array>") */ + #[Serializer\Type(name: 'array>")] public array $backedArray; /** * @Serializer\Type("array>") */ + #[Serializer\Type(name: 'array>')] public array $backedArrayWithoutParam; public Suit $ordinaryAutoDetect;