We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e048f8 + 3d24c3d commit ebb5c10Copy full SHA for ebb5c10
lib/Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionTrait.php
@@ -359,6 +359,9 @@ public function containsKey($key)
359
return $this->coll->containsKey($key);
360
}
361
362
+ /**
363
+ * @template TMaybeContained
364
+ */
365
public function contains($element)
366
{
367
$this->initialize();
@@ -373,6 +376,11 @@ public function exists(Closure $p)
373
376
return $this->coll->exists($p);
374
377
375
378
379
380
+ * @psalm-return (TMaybeContained is T ? TKey|false : false)
381
+ *
382
383
384
public function indexOf($element)
385
386
0 commit comments