Skip to content

Commit

Permalink
Fix deprecated Optional parameter before required parameter on Printa…
Browse files Browse the repository at this point in the history
…bleNewAnonClassNode

Fixes #986
  • Loading branch information
samsonasik authored Mar 17, 2024
1 parent 32cdab9 commit 9afbd2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PhpParser/Internal/PrintableNewAnonClassNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9afbd2d

Please sign in to comment.