Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /