Fix parent class of PropertyItem and UseItem

This commit is contained in:
Ondrej Mirtes 2023-12-22 19:21:41 +01:00 committed by Nikita Popov
parent 255000ad49
commit 1eeeb2d525
2 changed files with 4 additions and 2 deletions

View File

@ -3,8 +3,9 @@
namespace PhpParser\Node; namespace PhpParser\Node;
use PhpParser\Node; use PhpParser\Node;
use PhpParser\NodeAbstract;
class PropertyItem extends Node\Stmt { class PropertyItem extends NodeAbstract {
/** @var Node\VarLikeIdentifier Name */ /** @var Node\VarLikeIdentifier Name */
public VarLikeIdentifier $name; public VarLikeIdentifier $name;
/** @var null|Node\Expr Default */ /** @var null|Node\Expr Default */

View File

@ -3,9 +3,10 @@
namespace PhpParser\Node; namespace PhpParser\Node;
use PhpParser\Node; use PhpParser\Node;
use PhpParser\NodeAbstract;
use PhpParser\Node\Stmt\Use_; 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 * @var Use_::TYPE_* One of the Stmt\Use_::TYPE_* constants. Will only differ from TYPE_UNKNOWN for mixed group uses
*/ */