Skip to content

Commit f4b835f

Browse files
ondrejmirtesnikic
authored andcommitted
Fix PHPDoc type of namespacedName properties
1 parent 210577f commit f4b835f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/PhpParser/Node/Const_.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Const_ extends NodeAbstract
1111
/** @var Expr Value */
1212
public $value;
1313

14-
/** @var Name Namespaced name (if using NameResolver) */
14+
/** @var Name|null Namespaced name (if using NameResolver) */
1515
public $namespacedName;
1616

1717
/**
@@ -30,7 +30,7 @@ public function __construct($name, Expr $value, array $attributes = []) {
3030
public function getSubNodeNames() : array {
3131
return ['name', 'value'];
3232
}
33-
33+
3434
public function getType() : string {
3535
return 'Const';
3636
}

lib/PhpParser/Node/Stmt/ClassLike.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ abstract class ClassLike extends Node\Stmt
1313
/** @var Node\AttributeGroup[] PHP attribute groups */
1414
public $attrGroups;
1515

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

1919
/**

lib/PhpParser/Node/Stmt/Function_.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Function_ extends Node\Stmt implements FunctionLike
2020
/** @var Node\AttributeGroup[] PHP attribute groups */
2121
public $attrGroups;
2222

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

2626
/**

0 commit comments

Comments
 (0)