Skip to content

Commit

Permalink
Fix EntityManagerInterface::getReference() type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Mar 29, 2020
1 parent 2622bfa commit bb42c39
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 bb42c39

Please sign in to comment.