diff --git a/stubs/EntityRepository.stub b/stubs/EntityRepository.stub index 784b14c8..bdc11eca 100644 --- a/stubs/EntityRepository.stub +++ b/stubs/EntityRepository.stub @@ -20,6 +20,7 @@ class EntityRepository implements ObjectRepository * @phpstan-param int|null $lockMode * @phpstan-param int|null $lockVersion * @phpstan-return TEntityClass|null + * @phpstan-impure */ public function find($id, $lockMode = null, $lockVersion = null); @@ -41,6 +42,7 @@ class EntityRepository implements ObjectRepository * @phpstan-param array $criteria The criteria. * @phpstan-param array|null $orderBy * @phpstan-return TEntityClass|null + * @phpstan-impure */ public function findOneBy(array $criteria, ?array $orderBy = null);