Skip to content

Commit d82749c

Browse files
TomasVotrubanikic
authored andcommitted
[types] add known docblock types to traverseArray(), cleanup no relevant git ignores
1 parent c97b23d commit d82749c

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

lib/PhpParser/NodeTraverser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ protected function traverseNode(Node $node): void {
174174
/**
175175
* Recursively traverse array (usually of nodes).
176176
*
177-
* @param array $nodes Array to traverse
177+
* @param Node[] $nodes Array to traverse
178178
*
179-
* @return array Result of traversal (may be original array or changed one)
179+
* @return Node[] Result of traversal (may be original array or changed one)
180180
*/
181181
protected function traverseArray(array $nodes): array {
182182
$doNodes = [];

phpstan-baseline.neon

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -174,18 +174,6 @@ parameters:
174174
count: 1
175175
path: lib/PhpParser/NodeDumper.php
176176

177-
-
178-
message: '#^Method PhpParser\\NodeTraverser\:\:traverseArray\(\) has parameter \$nodes with no value type specified in iterable type array\.$#'
179-
identifier: missingType.iterableValue
180-
count: 1
181-
path: lib/PhpParser/NodeTraverser.php
182-
183-
-
184-
message: '#^Method PhpParser\\NodeTraverser\:\:traverseArray\(\) return type has no value type specified in iterable type array\.$#'
185-
identifier: missingType.iterableValue
186-
count: 1
187-
path: lib/PhpParser/NodeTraverser.php
188-
189177
-
190178
message: '#^Access to an undefined property PhpParser\\Node\:\:\$attrGroups\.$#'
191179
identifier: property.notFound

0 commit comments

Comments
 (0)