Skip to content

Commit

Permalink
Merge pull request #11389 from tantegerda1/2.19.x
Browse files Browse the repository at this point in the history
Fix psalm errors: remove override of template type
  • Loading branch information
greg0ire committed Mar 23, 2024
2 parents e4a6c04 + c54c557 commit 6090141
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
3 changes: 0 additions & 3 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,6 @@
</RedundantConditionGivenDocblockType>
</file>
<file src="src/Internal/Hydration/ObjectHydrator.php">
<InvalidArgument>
<code><![CDATA[$element]]></code>
</InvalidArgument>
<PossiblyFalseArgument>
<code><![CDATA[$index]]></code>
</PossiblyFalseArgument>
Expand Down
6 changes: 3 additions & 3 deletions src/LazyCriteriaCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ public function isEmpty()
}

/**
* {@inheritDoc}
*
* Do an optimized search of an element
*
* @template TMaybeContained
* @param mixed $element The element to search for.
*
* @return bool TRUE if the collection contains $element, FALSE otherwise.
*/
public function contains($element)
{
Expand Down
5 changes: 0 additions & 5 deletions src/PersistentCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,11 +412,6 @@ public function containsKey($key): bool
return parent::containsKey($key);
}

/**
* {@inheritDoc}
*
* @template TMaybeContained
*/
public function contains($element): bool
{
if (! $this->initialized && $this->getMapping()['fetch'] === ClassMetadata::FETCH_EXTRA_LAZY) {
Expand Down

0 comments on commit 6090141

Please sign in to comment.