Skip to content

Commit

Permalink
Merge pull request #54 from simPod/getreference-null
Browse files Browse the repository at this point in the history
Fix EntityManagerInterface::getReference() type hint
  • Loading branch information
weirdan authored Mar 29, 2020
2 parents 2622bfa + bb42c39 commit 229a38f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stubs/EntityManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function find(string $entityName, $id, ?int $lockMode = null, ?int $lockV
* @param class-string<T> $entityName
* @param mixed $id
*
* @return T
* @return T|null
*
* @template T
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/EntityManagerInterface.feature
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Feature: EntityManagerInterface
When I run Psalm
Then I see these errors
| Type | Message |
| InvalidArgument | Argument 1 of atan expects float, I provided |
| InvalidArgument | Argument 1 of atan expects float, I\|null provided |
And I see no other errors

@EntityManagerInterface::getReference
Expand Down

0 comments on commit 229a38f

Please sign in to comment.