Skip to content

Commit

Permalink
Merge pull request doctrine#8586 from KartaviK/patch-3
Browse files Browse the repository at this point in the history
Additional psalm param typehint for orderBy argument in findBy method
  • Loading branch information
greg0ire committed Apr 5, 2021
2 parents 7de8453 + ca80830 commit a588555
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/EntityRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function findAll()
* @param int|null $offset
*
* @psalm-param array<string, mixed> $criteria
* @psalm-param list<string>|null $orderBy
* @psalm-param array<string, string>|null $orderBy
* @psalm-return list<T> The objects.
*/
public function findBy(array $criteria, ?array $orderBy = null, $limit = null, $offset = null)
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/Persisters/Entity/EntityPersister.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ public function loadCriteria(Criteria $criteria);
* @param int|null $limit
* @param int|null $offset
*
* @psalm-param list<string>|null $orderBy
* @psalm-param array<string, mixed> $criteria
* @psalm-param array<string, string>|null $orderBy
* @psalm-param array<string, mixed> $criteria
*/
public function loadAll(array $criteria = [], ?array $orderBy = null, $limit = null, $offset = null);

Expand Down

0 comments on commit a588555

Please sign in to comment.