Skip to content

Commit

Permalink
Split TreeWalker and SqlWalker
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed May 17, 2022
1 parent c8735de commit 9cfea0f
Show file tree
Hide file tree
Showing 18 changed files with 356 additions and 2,765 deletions.
14 changes: 2 additions & 12 deletions lib/Doctrine/ORM/Query/QueryException.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,24 +122,14 @@ public static function parameterTypeMismatch()
return new self('DQL Query parameter and type numbers mismatch, but have to be exactly equal.');
}

/**
* @param PathExpression $pathExpr
*
* @return QueryException
*/
public static function invalidPathExpression($pathExpr)
public static function invalidPathExpression(PathExpression $pathExpr): self
{
return new self(
"Invalid PathExpression '" . $pathExpr->identificationVariable . '.' . $pathExpr->field . "'."
);
}

/**
* @param string|Stringable $literal
*
* @return QueryException
*/
public static function invalidLiteral($literal)
public static function invalidLiteral(string|Stringable $literal): self
{
return new self("Invalid literal '" . $literal . "'");
}
Expand Down

0 comments on commit 9cfea0f

Please sign in to comment.