From 7f0a181e39175788b513cf2d69e315d24da08dc4 Mon Sep 17 00:00:00 2001 From: eltharin Date: Wed, 2 Oct 2024 09:48:03 +0200 Subject: [PATCH] add nested new in EBNF documentation --- docs/en/reference/dql-doctrine-query-language.rst | 2 +- src/Query/Parser.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/reference/dql-doctrine-query-language.rst b/docs/en/reference/dql-doctrine-query-language.rst index c2b31cd326d..ab3cb138889 100644 --- a/docs/en/reference/dql-doctrine-query-language.rst +++ b/docs/en/reference/dql-doctrine-query-language.rst @@ -1627,7 +1627,7 @@ Select Expressions PartialObjectExpression ::= "PARTIAL" IdentificationVariable "." PartialFieldSet PartialFieldSet ::= "{" SimpleStateField {"," SimpleStateField}* "}" NewObjectExpression ::= "NEW" AbstractSchemaName "(" NewObjectArg {"," NewObjectArg}* ")" - NewObjectArg ::= ScalarExpression | "(" Subselect ")" + NewObjectArg ::= ScalarExpression | "(" Subselect ")" | NewObjectExpression Conditional Expressions ~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/src/Query/Parser.php b/src/Query/Parser.php index 38858cbf876..875783c87d4 100644 --- a/src/Query/Parser.php +++ b/src/Query/Parser.php @@ -1765,7 +1765,7 @@ public function NewObjectExpression(): AST\NewObjectExpression } /** - * NewObjectArg ::= ScalarExpression | "(" Subselect ")" + * NewObjectArg ::= ScalarExpression | "(" Subselect ")" | NewObjectExpression */ public function NewObjectArg(): mixed {