Skip to content

Commit

Permalink
Removed useless enum check
Browse files Browse the repository at this point in the history
  • Loading branch information
symfonyaml committed Oct 21, 2024
1 parent db21985 commit 92a8854
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/UnitOfWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -1568,10 +1568,6 @@ final public static function getIdHashByIdentifier(array $identifier): string
' ',
array_map(
static function ($value) {
if ($value instanceof BackedEnum) {
return $value->value;
}

if (! is_scalar($value) && ! ($value instanceof Stringable)) {
throw new UnexpectedValueException(sprintf(
'Unexpected identifier value: Expecting scalar or Stringable, got %s.',
Expand Down

0 comments on commit 92a8854

Please sign in to comment.