Skip to content

Commit

Permalink
Merge pull request #510 from greg0ire/2.0.x
Browse files Browse the repository at this point in the history
Merge 1.8.x up into 2.0.x
  • Loading branch information
greg0ire authored Dec 10, 2024
2 parents 007bda9 + a8d9df5 commit 2ae4513
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,6 @@ parameters:
count: 2
path: src/ReferenceRepository.php

-
message: "#^Method Doctrine\\\\Common\\\\DataFixtures\\\\ReferenceRepository\\:\\:getIdentifier\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/ReferenceRepository.php

-
message: "#^Parameter \\#1 \\$className of method Doctrine\\\\Persistence\\\\ObjectManager\\:\\:getClassMetadata\\(\\) expects class\\-string\\<object\\>, string given\\.$#"
count: 1
Expand Down
4 changes: 2 additions & 2 deletions src/ReferenceRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct(ObjectManager $manager)
* @param object $reference Reference object
* @param object $uow Unit of work
*/
protected function getIdentifier(object $reference, object $uow): array
protected function getIdentifier(object $reference, object $uow): mixed
{
// In case Reference is not yet managed in UnitOfWork
if (! $this->hasIdentifier($reference)) {
Expand Down Expand Up @@ -208,7 +208,7 @@ public function hasIdentity(string $name, string $class): bool
/**
* 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 2ae4513

Please sign in to comment.