Skip to content

Commit 63f6b35

Browse files
committed
Fixed return type of getAssociations method
1 parent 44ce4bb commit 63f6b35

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Repository/Interfaces/BaseRepositoryInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Doctrine\ORM\AbstractQuery;
1414
use Doctrine\ORM\EntityManager;
1515
use Doctrine\ORM\Exception\ORMException;
16+
use Doctrine\ORM\Mapping\AssociationMapping;
1617
use Doctrine\ORM\Mapping\ClassMetadata;
1718
use Doctrine\ORM\NonUniqueResultException;
1819
use Doctrine\ORM\NoResultException;
@@ -51,7 +52,7 @@ public function getReference(string $id): ?object;
5152
/**
5253
* Gets all association mappings of the class.
5354
*
54-
* @psalm-return array<string, array<string, mixed>>
55+
* @psalm-return array<string, AssociationMapping>
5556
*/
5657
public function getAssociations(): array;
5758

src/Repository/Traits/RepositoryWrappersTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
use App\Rest\UuidHelper;
1212
use Doctrine\ORM\EntityManager;
13+
use Doctrine\ORM\Mapping\AssociationMapping;
1314
use Doctrine\ORM\Mapping\ClassMetadata;
1415
use Doctrine\ORM\QueryBuilder;
1516
use Ramsey\Uuid\Exception\InvalidUuidStringException;
@@ -36,7 +37,7 @@ public function getReference(string $id): ?object
3637
/**
3738
* {@inheritdoc}
3839
*
39-
* @psalm-return array<string, array<string, mixed>>
40+
* @psalm-return array<string, AssociationMapping>
4041
*/
4142
public function getAssociations(): array
4243
{

0 commit comments

Comments
 (0)