Skip to content

Commit

Permalink
Fixed null values in the AbstractEnumType
Browse files Browse the repository at this point in the history
  • Loading branch information
tg666 committed Jul 8, 2024
1 parent f811790 commit cfeb33e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): stri

public function convertToPHPValue($value, AbstractPlatform $platform): ?BackedEnum
{
if (null === $value) {
return null;
}

$enumClassname = $this->getEnumsClassname();

if (false === enum_exists($enumClassname, true)) {
Expand Down

0 comments on commit cfeb33e

Please sign in to comment.