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 8, 2023
1 parent db8cda5 commit aded07e
Showing 1 changed file with 0 additions and 2 deletions.
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 aded07e

Please sign in to comment.