From 8cabec95522fcb65bf0e19326ba7cf4844f1ac1d Mon Sep 17 00:00:00 2001 From: symfonyaml <> Date: Fri, 24 Jan 2025 13:02:14 +0100 Subject: [PATCH] Remove because can no longer contain any BackedEnum --- src/UnitOfWork.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/UnitOfWork.php b/src/UnitOfWork.php index f26fdbc72a..c0d027ac20 100644 --- a/src/UnitOfWork.php +++ b/src/UnitOfWork.php @@ -1565,10 +1565,6 @@ final public static function getIdHashByIdentifier(array $identifier): string ' ', array_map( static function (mixed $value): Stringable|int|float|string|bool { - if ($value instanceof BackedEnum) { - $value = $value->value; - } - if (! is_scalar($value) && ! ($value instanceof Stringable)) { throw new UnexpectedValueException(sprintf( 'Unexpected identifier value: Expecting scalar or Stringable, got %s.',