Skip to content

Commit 723ed14

Browse files
committed
Added missing method EntityRepository::matching() to stub
1 parent e5d9646 commit 723ed14

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

extension.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ parameters:
1111
queryBuilderFastAlgorithm: true
1212
stubFiles:
1313
- stubs/ClassMetadataInfo.stub
14+
- stubs/Criteria.stub
1415
- stubs/DocumentManager.stub
1516
- stubs/DocumentRepository.stub
1617
- stubs/EntityManager.stub

stubs/Criteria.stub

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace Doctrine\Common\Collections;
4+
5+
class Criteria
6+
{
7+
8+
}

stubs/EntityRepository.stub

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Doctrine\ORM;
44

5+
use Doctrine\Common\Collections\Criteria;
56
use Doctrine\Persistence\ObjectRepository;
67

78
/**
@@ -50,4 +51,13 @@ class EntityRepository implements ObjectRepository
5051
*/
5152
protected function getEntityName();
5253

54+
/**
55+
* @param \Doctrine\Common\Collections\Criteria $criteria
56+
*
57+
* @return \Doctrine\Common\Collections\Collection
58+
*
59+
* @psalm-return \Doctrine\Common\Collections\Collection<int, TEntityClass>
60+
*/
61+
public function matching(Criteria $criteria);
62+
5363
}

0 commit comments

Comments
 (0)