File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1693,7 +1693,7 @@ Select Expressions
1693
1693
PartialObjectExpression ::= "PARTIAL" IdentificationVariable "." PartialFieldSet
1694
1694
PartialFieldSet ::= "{" SimpleStateField {"," SimpleStateField}* "}"
1695
1695
NewObjectExpression ::= "NEW" AbstractSchemaName "(" NewObjectArg {"," NewObjectArg}* ")"
1696
- NewObjectArg ::= ScalarExpression | "(" Subselect ")"
1696
+ NewObjectArg ::= ScalarExpression | NamedScalarExpression | "(" Subselect ")"
1697
1697
1698
1698
Conditional Expressions
1699
1699
~~~~~~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -1948,10 +1948,14 @@ public function NewObjectExpression()
1948
1948
/**
1949
1949
* NewObjectArg ::= ScalarExpression | NamedScalarExpression | "(" Subselect ")"
1950
1950
*
1951
+ * @param bool $namedArgAlreadyParsed
1952
+ *
1951
1953
* @return mixed
1952
1954
*/
1953
- public function NewObjectArg (bool $ namedArgAlreadyParsed = false )
1955
+ public function NewObjectArg (/* bool $namedArgAlreadyParsed = false */ )
1954
1956
{
1957
+ $ namedArgAlreadyParsed = func_get_args ()[0 ] ?? false ;
1958
+
1955
1959
assert ($ this ->lexer ->lookahead !== null );
1956
1960
$ token = $ this ->lexer ->lookahead ;
1957
1961
$ peek = $ this ->lexer ->glimpse ();
You can’t perform that action at this time.
0 commit comments