Skip to content

Commit

Permalink
Fix PHPDoc type of namespacedName properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes authored and nikic committed Dec 6, 2021
1 parent 210577f commit f4b835f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/PhpParser/Node/Const_.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Const_ extends NodeAbstract
/** @var Expr Value */
public $value;

/** @var Name Namespaced name (if using NameResolver) */
/** @var Name|null Namespaced name (if using NameResolver) */
public $namespacedName;

/**
Expand All @@ -30,7 +30,7 @@ public function __construct($name, Expr $value, array $attributes = []) {
public function getSubNodeNames() : array {
return ['name', 'value'];
}

public function getType() : string {
return 'Const';
}
Expand Down
2 changes: 1 addition & 1 deletion lib/PhpParser/Node/Stmt/ClassLike.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ abstract class ClassLike extends Node\Stmt
/** @var Node\AttributeGroup[] PHP attribute groups */
public $attrGroups;

/** @var Node\Name Namespaced name (if using NameResolver) */
/** @var Node\Name|null Namespaced name (if using NameResolver) */
public $namespacedName;

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/PhpParser/Node/Stmt/Function_.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Function_ extends Node\Stmt implements FunctionLike
/** @var Node\AttributeGroup[] PHP attribute groups */
public $attrGroups;

/** @var Node\Name Namespaced name (if using NameResolver) */
/** @var Node\Name|null Namespaced name (if using NameResolver) */
public $namespacedName;

/**
Expand Down

0 comments on commit f4b835f

Please sign in to comment.