Skip to content

Commit

Permalink
Fix parent class of PropertyItem and UseItem
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes authored and nikic committed Dec 22, 2023
1 parent 255000a commit 1eeeb2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/PhpParser/Node/PropertyItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
3 changes: 2 additions & 1 deletion lib/PhpParser/Node/UseItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 1eeeb2d

Please sign in to comment.