Skip to content

Commit

Permalink
Do not reference enum in constants in tests - compatibility with 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
olsavmic committed Sep 6, 2024
1 parent 72aa745 commit 655374c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#[Discriminator(
'type',
mapping: [
HierarchicalWithEnumType::ChildOne->value => HierarchicalWithEnumChildInput::class,
'childOne' => HierarchicalWithEnumChildInput::class,
],
)]
abstract class HierarchicalWithEnumParentInput
Expand Down
4 changes: 2 additions & 2 deletions tests/Compiler/MapperFactory/Data/AnimalInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 655374c

Please sign in to comment.