diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 7a3b729e84..d04835c1e8 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -462,9 +462,6 @@ - - - diff --git a/src/LazyCriteriaCollection.php b/src/LazyCriteriaCollection.php index 5580f971eb..4804092261 100644 --- a/src/LazyCriteriaCollection.php +++ b/src/LazyCriteriaCollection.php @@ -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) { diff --git a/src/PersistentCollection.php b/src/PersistentCollection.php index 4470a64a5c..c94bb77496 100644 --- a/src/PersistentCollection.php +++ b/src/PersistentCollection.php @@ -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) {