diff --git a/lib/PhpParser/Node/Stmt/ClassLike.php b/lib/PhpParser/Node/Stmt/ClassLike.php index fb9ba4f59a..e652177c44 100644 --- a/lib/PhpParser/Node/Stmt/ClassLike.php +++ b/lib/PhpParser/Node/Stmt/ClassLike.php @@ -17,7 +17,7 @@ abstract class ClassLike extends Node\Stmt { public ?Node\Name $namespacedName; /** - * @return TraitUse[] + * @return list */ public function getTraitUses(): array { $traitUses = []; @@ -30,7 +30,7 @@ public function getTraitUses(): array { } /** - * @return ClassConst[] + * @return list */ public function getConstants(): array { $constants = []; @@ -43,7 +43,7 @@ public function getConstants(): array { } /** - * @return Property[] + * @return list */ public function getProperties(): array { $properties = []; @@ -78,7 +78,7 @@ public function getProperty(string $name): ?Property { /** * Gets all methods defined directly in this class/interface/trait * - * @return ClassMethod[] + * @return list */ public function getMethods(): array { $methods = []; diff --git a/lib/PhpParser/NodeVisitor/FindingVisitor.php b/lib/PhpParser/NodeVisitor/FindingVisitor.php index 1f3f4bae88..65a1bd3f1b 100644 --- a/lib/PhpParser/NodeVisitor/FindingVisitor.php +++ b/lib/PhpParser/NodeVisitor/FindingVisitor.php @@ -12,7 +12,7 @@ class FindingVisitor extends NodeVisitorAbstract { /** @var callable Filter callback */ protected $filterCallback; - /** @var Node[] Found nodes */ + /** @var list Found nodes */ protected array $foundNodes; public function __construct(callable $filterCallback) { @@ -24,7 +24,7 @@ public function __construct(callable $filterCallback) { * * Nodes are returned in pre-order. * - * @return Node[] Found nodes + * @return list Found nodes */ public function getFoundNodes(): array { return $this->foundNodes;