Skip to content

Commit e7d308b

Browse files
Merge branch '6.4' into 7.3
* 6.4: don't cast strings exceeding the min/max int ranges do not pass the empty string to ord() do not coerce NAN to other types fix transient Console output related test
2 parents 21cd48c + c14bb5a commit e7d308b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Form/ChoiceList/ORMQueryBuilderLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function getEntitiesByIds(string $identifier, array $values): array
6666

6767
// Filter out non-integer values (e.g. ""). If we don't, some
6868
// databases such as PostgreSQL fail.
69-
$values = array_values(array_filter($values, fn ($v) => (string) $v === (string) (int) $v || ctype_digit($v)));
69+
$values = array_values(array_filter($values, static fn ($v) => \is_string($v) && ctype_digit($v) || (string) $v === (string) (int) $v));
7070
} elseif (\in_array($type, ['ulid', 'uuid', 'guid'])) {
7171
$parameterType = ArrayParameterType::STRING;
7272

0 commit comments

Comments
 (0)