diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index fba66c05..daeb90a1 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -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\\, string given\\.$#" count: 1 diff --git a/src/ReferenceRepository.php b/src/ReferenceRepository.php index d8ed39df..262cc86a 100644 --- a/src/ReferenceRepository.php +++ b/src/ReferenceRepository.php @@ -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)) { @@ -208,7 +208,7 @@ public function hasIdentity(string $name, string $class): bool /** * Get all stored identities * - * @phpstan-return array> + * @phpstan-return array> */ public function getIdentitiesByClass(): array {