Skip to content

Commit

Permalink
Update type suggested by greg0ire
Browse files Browse the repository at this point in the history
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
  • Loading branch information
symfonyaml and greg0ire authored Jan 24, 2025
1 parent 92a8854 commit 9fe5225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UnitOfWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,7 @@ final public static function getIdHashByIdentifier(array $identifier): string
return implode(
' ',
array_map(
static function ($value) {
static function (mixed $value): Stringable|int|float|string|bool {
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 9fe5225

Please sign in to comment.