Skip to content

Commit 2321719

Browse files
committed
Suppress false positive Psalm issue
1 parent cf0e185 commit 2321719

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Repository/Traits/RepositoryMethodsTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ trait RepositoryMethodsTrait
2828
{
2929
public function find(string $id, LockMode|int|null $lockMode = null, int|null $lockVersion = null): ?EntityInterface
3030
{
31+
/**
32+
* @psalm-suppress PossiblyInvalidArgument - we know that this is correct
33+
*/
3134
$output = $this->getEntityManager()->find($this->getEntityName(), $id, $lockMode, $lockVersion);
3235

3336
return $output instanceof EntityInterface ? $output : null;

0 commit comments

Comments
 (0)