Skip to content

Commit 8a92f86

Browse files
committed
Do not reference enum in constants in tests - compatibility with 8.1
1 parent 7f37be1 commit 8a92f86

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/Compiler/Mapper/Object/Data/HierarchicalWithEnumParentInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#[Discriminator(
99
'type',
1010
mapping: [
11-
HierarchicalWithEnumType::ChildOne->value => HierarchicalWithEnumChildInput::class,
11+
'childOne' => HierarchicalWithEnumChildInput::class,
1212
],
1313
)]
1414
abstract class HierarchicalWithEnumParentInput

tests/Compiler/MapperFactory/Data/AnimalInput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#[Discriminator(
88
'type',
99
mapping: [
10-
AnimalType::Cat->value => AnimalCatInput::class,
11-
AnimalType::Dog->value => AnimalDogInput::class,
10+
'cat' => AnimalCatInput::class,
11+
'dog' => AnimalDogInput::class,
1212
],
1313
)]
1414
abstract class AnimalInput

0 commit comments

Comments
 (0)