Skip to content

Commit

Permalink
Merge pull request #329 from KnpLabs/fix/order-by-walker-signature
Browse files Browse the repository at this point in the history
fix: order by walker signature
  • Loading branch information
garak authored Mar 9, 2024
2 parents ac70448 + 0564d62 commit 51f7053
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
7 changes: 0 additions & 7 deletions phpstan-baseline.neon

This file was deleted.

2 changes: 0 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ parameters:
level: 5
paths:
- src
includes:
- phpstan-baseline.neon
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 51f7053

Please sign in to comment.