From a2c9746a183e3cac7f97543f65e7f612e38b0390 Mon Sep 17 00:00:00 2001 From: clementvtrd <84911237+clementvtrd@users.noreply.github.com> Date: Fri, 8 Mar 2024 16:12:12 +0100 Subject: [PATCH] fix: order by walker signature --- .../Subscriber/Sortable/Doctrine/ORM/Query/OrderByWalker.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 ''; } }