Skip to content

Commit 0564d62

Browse files
clementvtrdmuchafm
andcommitted
fix: order by walker signature
Co-authored-by: muchafm <47305202+muchafm@users.noreply.github.com>
1 parent ac70448 commit 0564d62

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 7 deletions
This file was deleted.

phpstan.neon

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@ parameters:
22
level: 5
33
paths:
44
- src
5-
includes:
6-
- phpstan-baseline.neon

src/Knp/Component/Pager/Event/Subscriber/Sortable/Doctrine/ORM/Query/OrderByWalker.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class OrderByWalker extends TreeWalkerAdapter
3434
* Walks down a SelectStatement AST node, modifying it to
3535
* sort the query like requested by url
3636
*/
37-
public function walkSelectStatement(SelectStatement $AST): string
37+
public function walkSelectStatement(SelectStatement $AST): void
3838
{
3939
$query = $this->_getQuery();
4040
$fields = (array)$query->getHint(self::HINT_PAGINATOR_SORT_FIELD);
@@ -90,7 +90,5 @@ public function walkSelectStatement(SelectStatement $AST): string
9090
$AST->orderByClause = new OrderByClause([$orderByItem]);
9191
}
9292
}
93-
94-
return '';
9593
}
9694
}

0 commit comments

Comments
 (0)