@@ -20,13 +20,13 @@ final class CachingVisitor extends NodeVisitorAbstract
2020
2121 private string $ contents ;
2222
23- /** @var array<string, array <FetchedNode<Node\Stmt\ClassLike>>> */
23+ /** @var array<string, list <FetchedNode<Node\Stmt\ClassLike>>> */
2424 private array $ classNodes ;
2525
26- /** @var array<string, array <FetchedNode<Node\Stmt\Function_>>> */
26+ /** @var array<string, list <FetchedNode<Node\Stmt\Function_>>> */
2727 private array $ functionNodes ;
2828
29- /** @var array<string, array <FetchedNode<Node\Stmt\Const_|Node\Expr\FuncCall>>> */
29+ /** @var array<string, list <FetchedNode<Node\Stmt\Const_|Node\Expr\FuncCall>>> */
3030 private array $ constantNodes ;
3131
3232 private ?Node \Stmt \Namespace_ $ currentNamespaceNode = null ;
@@ -124,23 +124,23 @@ public function leaveNode(Node $node)
124124 }
125125
126126 /**
127- * @return array<string, array <FetchedNode<Node\Stmt\ClassLike>>>
127+ * @return array<string, list <FetchedNode<Node\Stmt\ClassLike>>>
128128 */
129129 public function getClassNodes (): array
130130 {
131131 return $ this ->classNodes ;
132132 }
133133
134134 /**
135- * @return array<string, array <FetchedNode<Node\Stmt\Function_>>>
135+ * @return array<string, list <FetchedNode<Node\Stmt\Function_>>>
136136 */
137137 public function getFunctionNodes (): array
138138 {
139139 return $ this ->functionNodes ;
140140 }
141141
142142 /**
143- * @return array<string, array <FetchedNode<Node\Stmt\Const_|Node\Expr\FuncCall>>>
143+ * @return array<string, list <FetchedNode<Node\Stmt\Const_|Node\Expr\FuncCall>>>
144144 */
145145 public function getConstantNodes (): array
146146 {
0 commit comments