diff --git a/src/Knp/Component/Pager/Event/Subscriber/Sortable/Doctrine/ORM/Query/OrderByWalker.php b/src/Knp/Component/Pager/Event/Subscriber/Sortable/Doctrine/ORM/Query/OrderByWalker.php index a0e06f61..e8508090 100644 --- a/src/Knp/Component/Pager/Event/Subscriber/Sortable/Doctrine/ORM/Query/OrderByWalker.php +++ b/src/Knp/Component/Pager/Event/Subscriber/Sortable/Doctrine/ORM/Query/OrderByWalker.php @@ -34,7 +34,7 @@ class OrderByWalker extends TreeWalkerAdapter * Walks down a SelectStatement AST node, modifying it to * sort the query like requested by url */ - public function walkSelectStatement(SelectStatement $AST): string + public function walkSelectStatement(SelectStatement $AST): void { $query = $this->_getQuery(); $fields = (array)$query->getHint(self::HINT_PAGINATOR_SORT_FIELD); @@ -90,7 +90,5 @@ public function walkSelectStatement(SelectStatement $AST): string $AST->orderByClause = new OrderByClause([$orderByItem]); } } - - return ''; } }