From ca80830b26b4c81a97ff7c38b4605972174d3964 Mon Sep 17 00:00:00 2001 From: Roman Varkuta Date: Fri, 2 Apr 2021 10:21:43 +0300 Subject: [PATCH] Describe $orderBy parameter as a hash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A list of string is incorrect, it actually looks like this: ['someField' => 'DESC', 'someOtherField' => 'ASC'…]` --- lib/Doctrine/ORM/EntityRepository.php | 2 +- lib/Doctrine/ORM/Persisters/Entity/EntityPersister.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/ORM/EntityRepository.php b/lib/Doctrine/ORM/EntityRepository.php index ee84e7ea4b..d429e2c944 100644 --- a/lib/Doctrine/ORM/EntityRepository.php +++ b/lib/Doctrine/ORM/EntityRepository.php @@ -185,7 +185,7 @@ public function findAll() * @param int|null $offset * * @psalm-param array $criteria - * @psalm-param list|null $orderBy + * @psalm-param array|null $orderBy * @psalm-return list The objects. */ public function findBy(array $criteria, ?array $orderBy = null, $limit = null, $offset = null) diff --git a/lib/Doctrine/ORM/Persisters/Entity/EntityPersister.php b/lib/Doctrine/ORM/Persisters/Entity/EntityPersister.php index abe3b79831..0c755e95ee 100644 --- a/lib/Doctrine/ORM/Persisters/Entity/EntityPersister.php +++ b/lib/Doctrine/ORM/Persisters/Entity/EntityPersister.php @@ -273,8 +273,8 @@ public function loadCriteria(Criteria $criteria); * @param int|null $limit * @param int|null $offset * - * @psalm-param list|null $orderBy - * @psalm-param array $criteria + * @psalm-param array|null $orderBy + * @psalm-param array $criteria */ public function loadAll(array $criteria = [], ?array $orderBy = null, $limit = null, $offset = null);