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 Apr 19, 2022
1 parent 682b4e3 commit 548a069
Show file tree
Hide file tree
Showing 18 changed files with 358 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
Loading

0 comments on commit 548a069

Please sign in to comment.