Skip to content

Commit

Permalink
Remove override of template type: causing psalm errors
Browse files Browse the repository at this point in the history
The override of this template type causes Psalm to throw an error
whenever contains is called: https://psalm.dev/r/a2f9439bd2

Removing the extra type works as expected: https://psalm.dev/r/de5f58d52f

Fixes doctrine#368
  • Loading branch information
annervisser committed May 11, 2023
1 parent a72b781 commit 71a25d7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/AbstractLazyCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ public function clear()

/**
* {@inheritDoc}
*
* @template TMaybeContained
*/
public function contains(mixed $element)
{
Expand Down
2 changes: 0 additions & 2 deletions src/ArrayCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,6 @@ public function containsKey(string|int $key)

/**
* {@inheritDoc}
*
* @template TMaybeContained
*/
public function contains(mixed $element)
{
Expand Down

0 comments on commit 71a25d7

Please sign in to comment.