diff --git a/lib/PhpParser/Internal/PrintableNewAnonClassNode.php b/lib/PhpParser/Internal/PrintableNewAnonClassNode.php index 917ed1e854..dadf357100 100644 --- a/lib/PhpParser/Internal/PrintableNewAnonClassNode.php +++ b/lib/PhpParser/Internal/PrintableNewAnonClassNode.php @@ -31,8 +31,8 @@ class PrintableNewAnonClassNode extends Expr public $stmts; public function __construct( - array $attrGroups, int $flags, array $args, ?Node\Name $extends = null, array $implements, - array $stmts, array $attributes + array $attrGroups, int $flags, array $args, ?Node\Name $extends = null, array $implements = [], + array $stmts = [], array $attributes = [] ) { parent::__construct($attributes); $this->attrGroups = $attrGroups;