From 9afbd2d3c877ebc78a0a60397a29c494d0dff47c Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sun, 17 Mar 2024 14:24:02 +0700 Subject: [PATCH] Fix deprecated Optional parameter before required parameter on PrintableNewAnonClassNode Fixes https://github.com/nikic/PHP-Parser/issues/986 --- lib/PhpParser/Internal/PrintableNewAnonClassNode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;