Skip to content

Commit

Permalink
fix: order by walker signature
Browse files Browse the repository at this point in the history
  • Loading branch information
clementvtrd committed Mar 8, 2024
1 parent ac70448 commit a2c9746
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -90,7 +90,5 @@ public function walkSelectStatement(SelectStatement $AST): string
$AST->orderByClause = new OrderByClause([$orderByItem]);
}
}

return '';
}
}

0 comments on commit a2c9746

Please sign in to comment.