Skip to content

Commit

Permalink
Use static methods to create a Sort object
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Jan 27, 2021
1 parent b1b4d27 commit 1d8a704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/User/UserRepository.php
Expand Up @@ -27,7 +27,7 @@ public function findAllOrderByLogin(): EntityReader
{
return (new EntityReader($this->select()))
->withSort(
(new Sort(['login']))->withOrderString('login')
Sort::only(['login'])->withOrderString('login')
);
}

Expand Down

0 comments on commit 1d8a704

Please sign in to comment.