Skip to content

Commit dcce751

Browse files
thatsLegitsoyuka
authored andcommitted
fix(doctrine): OrderFilterTrait - properties null value causing error in foreach
1 parent b1926f5 commit dcce751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Doctrine/Common/Filter/OrderFilterTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function getDescription(string $resourceClass): array
4343
$properties = array_fill_keys($fieldNames, null);
4444
}
4545

46-
foreach ($properties as $property => $propertyOptions) {
46+
foreach ($properties ?? [] as $property => $propertyOptions) {
4747
if (!$this->isPropertyMapped($property, $resourceClass)) {
4848
continue;
4949
}

0 commit comments

Comments
 (0)