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 7f37be1 commit 8a92f86
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 @@ -8,7 +8,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 8a92f86

Please sign in to comment.