fix: type mismatches and handle nullable values

This commit is contained in:
2026-08-27 10:16:03 +02:00
parent c33c1b6bf0
commit e7f3233dbc
9 changed files with 67 additions and 47 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ class AssignmentRepository extends ServiceEntityRepository
;
}
if (0 < count($filterDto->getHotels())) {
if (0 < count((array)$filterDto->getHotels())) {
$constraints = [];
foreach ($filterDto->getHotels() as $index => $hotel) {
$constraints[] = $qb->expr()->like('destination.hotel', ':hotel'.$index);