Skip to content

Commit

Permalink
Relax type of identifiers
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
greg0ire committed Dec 2, 2024
1 parent 26965e9 commit ce28039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ReferenceRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -324,7 +324,7 @@ public function getIdentities()
/**
* Get all stored identities
*
* @phpstan-return array<class-string, array<string, object>>
* @phpstan-return array<class-string, array<string, mixed>>
*/
public function getIdentitiesByClass(): array
{
Expand Down

0 comments on commit ce28039

Please sign in to comment.