Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix query stub #114

Merged
merged 1 commit into from
Mar 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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