Skip to content

Commit

Permalink
Stop using deprecated const
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Apr 3, 2024
1 parent e7e5bfe commit 762c77a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Datagrid/ProxyQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function getDoctrineQuery(): Query
foreach ($queryBuilder->getDQLPart('orderBy') as $order) {
foreach ($order->getParts() as $part) {
\assert(\is_string($part));
$existingOrders[] = trim(str_replace([Criteria::DESC, Criteria::ASC], '', $part));
$existingOrders[] = trim(str_replace(['DESC', 'ASC'], '', $part));
}
}

Expand Down

0 comments on commit 762c77a

Please sign in to comment.