Skip to content

Commit b7fff50

Browse files
committed
add argument in constructor
1 parent c6fa14e commit b7fff50

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)