From ce28039da1b843ceb49d1f646c94f0c6cecc201a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Mon, 2 Dec 2024 13:02:59 +0100 Subject: [PATCH] Relax type of identifiers ORM and ODM and other things having an implementation of ReferenceRepository do not necessarily agree on what an identifier should be. data-fixtures should not really care either so long as the identifier can be used with serialize(). Let us relax the type of identifers to mixed. --- src/ReferenceRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ReferenceRepository.php b/src/ReferenceRepository.php index 0165638b..c75dde17 100644 --- a/src/ReferenceRepository.php +++ b/src/ReferenceRepository.php @@ -73,7 +73,7 @@ public function __construct(ObjectManager $manager) * @param object $reference Reference object * @param object $uow Unit of work * - * @return array + * @return mixed */ protected function getIdentifier(object $reference, object $uow) { @@ -324,7 +324,7 @@ public function getIdentities() /** * Get all stored identities * - * @phpstan-return array> + * @phpstan-return array> */ public function getIdentitiesByClass(): array {