Fix PHPDoc type of namespacedName properties

This commit is contained in:
Ondrej Mirtes 2021-12-06 21:21:44 +01:00 committed by Nikita Popov
parent 210577fe3c
commit f4b835f7d8
3 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ class Const_ extends NodeAbstract
/** @var Expr Value */ /** @var Expr Value */
public $value; public $value;
/** @var Name Namespaced name (if using NameResolver) */ /** @var Name|null Namespaced name (if using NameResolver) */
public $namespacedName; public $namespacedName;
/** /**
@ -30,7 +30,7 @@ class Const_ extends NodeAbstract
public function getSubNodeNames() : array { public function getSubNodeNames() : array {
return ['name', 'value']; return ['name', 'value'];
} }
public function getType() : string { public function getType() : string {
return 'Const'; return 'Const';
} }

View File

@ -13,7 +13,7 @@ abstract class ClassLike extends Node\Stmt
/** @var Node\AttributeGroup[] PHP attribute groups */ /** @var Node\AttributeGroup[] PHP attribute groups */
public $attrGroups; public $attrGroups;
/** @var Node\Name Namespaced name (if using NameResolver) */ /** @var Node\Name|null Namespaced name (if using NameResolver) */
public $namespacedName; public $namespacedName;
/** /**

View File

@ -20,7 +20,7 @@ class Function_ extends Node\Stmt implements FunctionLike
/** @var Node\AttributeGroup[] PHP attribute groups */ /** @var Node\AttributeGroup[] PHP attribute groups */
public $attrGroups; public $attrGroups;
/** @var Node\Name Namespaced name (if using NameResolver) */ /** @var Node\Name|null Namespaced name (if using NameResolver) */
public $namespacedName; public $namespacedName;
/** /**