Skip to content

Commit

Permalink
fix query stub (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrassian authored Mar 3, 2022
1 parent 0c6b6d7 commit 93fa799
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
8 changes: 0 additions & 8 deletions stubs/EntityRepository.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,4 @@ class EntityRepository implements ObjectRepository, Selectable
public function matching(Criteria $criteria)
{
}

/**
* @return QueryBuilder<T>
*/
public function createQueryBuilder($alias, $indexBy = null): QueryBuilder
{

}
}
2 changes: 1 addition & 1 deletion stubs/Query.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Doctrine\ORM;
class Query extends AbstractQuery
{
/**
* @param int $hydrationMode
* @param int|string $hydrationMode
*
* @psalm-return (
* $hydrationMode is self::HYDRATE_OBJECT
Expand Down
3 changes: 1 addition & 2 deletions stubs/QueryBuilder.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use Doctrine\ORM\Query\Expr;
/**
* @psalm-type _WhereExpr=Expr\Base|Expr\Comparison|Expr\Func|string
* @psalm-type _SelectExpr=Expr\Func|string
* @template T
*/
class QueryBuilder
{
Expand Down Expand Up @@ -93,7 +92,7 @@ class QueryBuilder


/**
* @return Query<T>
* @return Query<mixed>
*/
public function getQuery(): Query
{
Expand Down

0 comments on commit 93fa799

Please sign in to comment.