Skip to content

Commit 97b29bb

Browse files
authored
Merge pull request #11973 from eltharin/add_constructor
Add constructor argument
2 parents c6fa14e + b7fff50 commit 97b29bb

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Query/AST/NewObjectExpression.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,12 @@
1616
*/
1717
class NewObjectExpression extends Node
1818
{
19-
public bool $hasNamedArgs = false;
20-
2119
/**
2220
* @param class-string $className
2321
* @param mixed[] $args
2422
*/
25-
public function __construct(public string $className, public array $args /*, public bool $hasNamedArgs = false */)
23+
public function __construct(public string $className, public array $args, public bool $hasNamedArgs = false)
2624
{
27-
if (func_num_args() > 2) {
28-
$this->hasNamedArgs = func_get_arg(2);
29-
}
3025
}
3126

3227
public function dispatch(SqlWalker $walker /*, string|null $parentAlias = null */): string

0 commit comments

Comments
 (0)