diff --git a/src/Context/FieldResolver.php b/src/Context/FieldResolver.php index a91ca0e..39e9791 100644 --- a/src/Context/FieldResolver.php +++ b/src/Context/FieldResolver.php @@ -353,7 +353,7 @@ class FieldResolver { if (count($candidate_property_names) === 1) { throw new CacheableBadRequestHttpException($cacheability, sprintf('Invalid nested filtering. The property `%s`, given in the path `%s`, does not exist. Just filter by `%s` (there is no property to filter by; this field has only a single value).', $parts[0], $external_field_name, substr($external_field_name, 0, strlen($external_field_name) - strlen($parts[0]) - 1))); } - else if (!in_array($parts[0], $candidate_property_names, TRUE)) { + elseif (!in_array($parts[0], $candidate_property_names, TRUE)) { throw new CacheableBadRequestHttpException($cacheability, sprintf('Invalid nested filtering. The property `%s`, given in the path `%s`, does not exist. Must be one of the following property names: `%s`.', $parts[0], $external_field_name, implode('`, `', $candidate_property_names))); } return $this->constructInternalPath($reference_breadcrumbs, $parts);