Documenting thrown exception type, spacing #6162
This commit is contained in:
parent
1dbc67cce1
commit
a7dcdd8d48
@ -1712,12 +1712,15 @@ class Parser
|
|||||||
* RangeVariableDeclaration ::= AbstractSchemaName ["AS"] AliasIdentificationVariable
|
* RangeVariableDeclaration ::= AbstractSchemaName ["AS"] AliasIdentificationVariable
|
||||||
*
|
*
|
||||||
* @return \Doctrine\ORM\Query\AST\RangeVariableDeclaration
|
* @return \Doctrine\ORM\Query\AST\RangeVariableDeclaration
|
||||||
|
*
|
||||||
|
* @throws QueryException
|
||||||
*/
|
*/
|
||||||
public function RangeVariableDeclaration()
|
public function RangeVariableDeclaration()
|
||||||
{
|
{
|
||||||
if ($this->lexer->isNextToken(Lexer::T_OPEN_PARENTHESIS) && $this->lexer->glimpse()['type'] === Lexer::T_SELECT) {
|
if ($this->lexer->isNextToken(Lexer::T_OPEN_PARENTHESIS) && $this->lexer->glimpse()['type'] === Lexer::T_SELECT) {
|
||||||
$this->semanticalError('Subquery is not supported here', $this->lexer->token);
|
$this->semanticalError('Subquery is not supported here', $this->lexer->token);
|
||||||
}
|
}
|
||||||
|
|
||||||
$abstractSchemaName = $this->AbstractSchemaName();
|
$abstractSchemaName = $this->AbstractSchemaName();
|
||||||
|
|
||||||
$this->validateAbstractSchemaName($abstractSchemaName);
|
$this->validateAbstractSchemaName($abstractSchemaName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user