1
0
mirror of synced 2025-03-06 12:56:10 +03:00

Documenting thrown exception type, spacing #6162

This commit is contained in:
Marco Pivetta 2017-06-21 05:35:58 +02:00
parent 1dbc67cce1
commit a7dcdd8d48
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -1712,12 +1712,15 @@ class Parser
* RangeVariableDeclaration ::= AbstractSchemaName ["AS"] AliasIdentificationVariable
*
* @return \Doctrine\ORM\Query\AST\RangeVariableDeclaration
*
* @throws QueryException
*/
public function RangeVariableDeclaration()
{
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);
}
$abstractSchemaName = $this->AbstractSchemaName();
$this->validateAbstractSchemaName($abstractSchemaName);