We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1926f5 commit dcce751Copy full SHA for dcce751
src/Doctrine/Common/Filter/OrderFilterTrait.php
@@ -43,7 +43,7 @@ public function getDescription(string $resourceClass): array
43
$properties = array_fill_keys($fieldNames, null);
44
}
45
46
- foreach ($properties as $property => $propertyOptions) {
+ foreach ($properties ?? [] as $property => $propertyOptions) {
47
if (!$this->isPropertyMapped($property, $resourceClass)) {
48
continue;
49
0 commit comments