Skip to content

Commit a61a04a

Browse files
janedbalondrejmirtes
authored andcommitted
EntityRepository.stub fix nullability in findOneBy
1 parent 815d5ae commit a61a04a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/EntityRepository.stub

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class EntityRepository implements ObjectRepository
4242
* @phpstan-param array<string, string>|null $orderBy
4343
* @phpstan-return TEntityClass|null
4444
*/
45-
public function findOneBy(array $criteria, array $orderBy = null);
45+
public function findOneBy(array $criteria, ?array $orderBy = null);
4646

4747
/**
4848
* @phpstan-return class-string<TEntityClass>

0 commit comments

Comments
 (0)