From 011c7e3af627455a305d24634fd9d29d59481bfd Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Fri, 22 Dec 2023 19:21:41 +0100 Subject: [PATCH] Fix parent class of PropertyItem and UseItem --- lib/PhpParser/Node/PropertyItem.php | 3 ++- lib/PhpParser/Node/UseItem.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/PhpParser/Node/PropertyItem.php b/lib/PhpParser/Node/PropertyItem.php index 62ad5aa70a..101611e6bc 100644 --- a/lib/PhpParser/Node/PropertyItem.php +++ b/lib/PhpParser/Node/PropertyItem.php @@ -3,8 +3,9 @@ namespace PhpParser\Node; use PhpParser\Node; +use PhpParser\NodeAbstract; -class PropertyItem extends Node\Stmt { +class PropertyItem extends NodeAbstract { /** @var Node\VarLikeIdentifier Name */ public VarLikeIdentifier $name; /** @var null|Node\Expr Default */ diff --git a/lib/PhpParser/Node/UseItem.php b/lib/PhpParser/Node/UseItem.php index 40ecb9ced8..a7d9fc447c 100644 --- a/lib/PhpParser/Node/UseItem.php +++ b/lib/PhpParser/Node/UseItem.php @@ -3,9 +3,10 @@ namespace PhpParser\Node; use PhpParser\Node; +use PhpParser\NodeAbstract; use PhpParser\Node\Stmt\Use_; -class UseItem extends Node\Stmt { +class UseItem extends NodeAbstract { /** * @var Use_::TYPE_* One of the Stmt\Use_::TYPE_* constants. Will only differ from TYPE_UNKNOWN for mixed group uses */