Skip to content

Commit 781b46b

Browse files
committed
Fix return type to match the interface
1 parent 0758f8b commit 781b46b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PersistentCollection/PersistentCollectionTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Closure;
99
use Doctrine\Common\Collections\Collection as BaseCollection;
1010
use Doctrine\Common\Collections\Criteria;
11+
use Doctrine\Common\Collections\ReadableCollection;
1112
use Doctrine\Common\Collections\Selectable;
1213
use Doctrine\ODM\MongoDB\DocumentManager;
1314
use Doctrine\ODM\MongoDB\Mapping\ClassMetadata;
@@ -779,7 +780,7 @@ public function reduce(Closure $func, $initial = null)
779780
return $this->coll->reduce($func, $initial);
780781
}
781782

782-
public function matching(Criteria $criteria)
783+
public function matching(Criteria $criteria): ReadableCollection
783784
{
784785
$this->initialize();
785786

0 commit comments

Comments
 (0)