Skip to content

Commit

Permalink
Added missing method EntityRepository::matching() to stub
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jan 14, 2021
1 parent e5d9646 commit 723ed14
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ parameters:
queryBuilderFastAlgorithm: true
stubFiles:
- stubs/ClassMetadataInfo.stub
- stubs/Criteria.stub
- stubs/DocumentManager.stub
- stubs/DocumentRepository.stub
- stubs/EntityManager.stub
Expand Down
8 changes: 8 additions & 0 deletions stubs/Criteria.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Doctrine\Common\Collections;

class Criteria
{

}
10 changes: 10 additions & 0 deletions stubs/EntityRepository.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Doctrine\ORM;

use Doctrine\Common\Collections\Criteria;
use Doctrine\Persistence\ObjectRepository;

/**
Expand Down Expand Up @@ -50,4 +51,13 @@ class EntityRepository implements ObjectRepository
*/
protected function getEntityName();

/**
* @param \Doctrine\Common\Collections\Criteria $criteria
*
* @return \Doctrine\Common\Collections\Collection
*
* @psalm-return \Doctrine\Common\Collections\Collection<int, TEntityClass>
*/
public function matching(Criteria $criteria);

}

0 comments on commit 723ed14

Please # to comment.