Commit 14f9c9d 1 parent fa02db3 commit 14f9c9d Copy full SHA for 14f9c9d
File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ abstract class ClassLike extends Node\Stmt {
17
17
public ?Node \Name $ namespacedName ;
18
18
19
19
/**
20
- * @return TraitUse[]
20
+ * @return list< TraitUse>
21
21
*/
22
22
public function getTraitUses (): array {
23
23
$ traitUses = [];
@@ -30,7 +30,7 @@ public function getTraitUses(): array {
30
30
}
31
31
32
32
/**
33
- * @return ClassConst[]
33
+ * @return list< ClassConst>
34
34
*/
35
35
public function getConstants (): array {
36
36
$ constants = [];
@@ -43,7 +43,7 @@ public function getConstants(): array {
43
43
}
44
44
45
45
/**
46
- * @return Property[]
46
+ * @return list< Property>
47
47
*/
48
48
public function getProperties (): array {
49
49
$ properties = [];
@@ -78,7 +78,7 @@ public function getProperty(string $name): ?Property {
78
78
/**
79
79
* Gets all methods defined directly in this class/interface/trait
80
80
*
81
- * @return ClassMethod[]
81
+ * @return list< ClassMethod>
82
82
*/
83
83
public function getMethods (): array {
84
84
$ methods = [];
Original file line number Diff line number Diff line change 12
12
class FindingVisitor extends NodeVisitorAbstract {
13
13
/** @var callable Filter callback */
14
14
protected $ filterCallback ;
15
- /** @var Node[] Found nodes */
15
+ /** @var list< Node> Found nodes */
16
16
protected array $ foundNodes ;
17
17
18
18
public function __construct (callable $ filterCallback ) {
@@ -24,7 +24,7 @@ public function __construct(callable $filterCallback) {
24
24
*
25
25
* Nodes are returned in pre-order.
26
26
*
27
- * @return Node[] Found nodes
27
+ * @return list< Node> Found nodes
28
28
*/
29
29
public function getFoundNodes (): array {
30
30
return $ this ->foundNodes ;
You can’t perform that action at this time.
0 commit comments