diff --git a/lib/Core/Site/QueryType/Location/Children.php b/lib/Core/Site/QueryType/Location/Children.php index 465685bd..8eda2139 100644 --- a/lib/Core/Site/QueryType/Location/Children.php +++ b/lib/Core/Site/QueryType/Location/Children.php @@ -50,11 +50,11 @@ function (Options $options): array { try { return $location->getSortClauses(); - } catch (NotImplementedException $e) { + } catch (NotImplementedException $exception) { $this->logger->notice( sprintf( 'Cannot use sort clauses from parent location: %s', - $e->getMessage(), + $exception->getMessage(), ), ); diff --git a/lib/Core/Site/QueryType/Location/Siblings.php b/lib/Core/Site/QueryType/Location/Siblings.php index 88f55205..2f0afa86 100644 --- a/lib/Core/Site/QueryType/Location/Siblings.php +++ b/lib/Core/Site/QueryType/Location/Siblings.php @@ -51,11 +51,11 @@ function (Options $options): array { try { return $location->parent->getSortClauses(); - } catch (NotImplementedException $e) { + } catch (NotImplementedException $exception) { $this->logger->notice( sprintf( 'Cannot use sort clauses from parent location: %s', - $e->getMessage(), + $exception->getMessage(), ), );