Skip to content

Commit b8279c4

Browse files
committed
Suppress false positive Psalm issue
1 parent 26bd8d0 commit b8279c4

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)