diff --git a/tests/Compiler/Mapper/Object/Data/HierarchicalWithEnumParentInput.php b/tests/Compiler/Mapper/Object/Data/HierarchicalWithEnumParentInput.php index 47f4541..2cfa402 100644 --- a/tests/Compiler/Mapper/Object/Data/HierarchicalWithEnumParentInput.php +++ b/tests/Compiler/Mapper/Object/Data/HierarchicalWithEnumParentInput.php @@ -7,7 +7,7 @@ #[Discriminator( 'type', mapping: [ - HierarchicalWithEnumType::ChildOne->value => HierarchicalWithEnumChildInput::class, + 'childOne' => HierarchicalWithEnumChildInput::class, ], )] abstract class HierarchicalWithEnumParentInput diff --git a/tests/Compiler/MapperFactory/Data/AnimalInput.php b/tests/Compiler/MapperFactory/Data/AnimalInput.php index 1d1fff3..519000d 100644 --- a/tests/Compiler/MapperFactory/Data/AnimalInput.php +++ b/tests/Compiler/MapperFactory/Data/AnimalInput.php @@ -7,8 +7,8 @@ #[Discriminator( 'type', mapping: [ - AnimalType::Cat->value => AnimalCatInput::class, - AnimalType::Dog->value => AnimalDogInput::class, + 'cat' => AnimalCatInput::class, + 'dog' => AnimalDogInput::class, ], )] abstract class AnimalInput