Skip to content

Commit f9dba47

Browse files
committed
misc
1 parent e0cf030 commit f9dba47

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

phpstan.neon

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ includes:
55
parameters:
66
level: 8
77

8-
reportUnmatchedIgnoredErrors: false
8+
# reportUnmatchedIgnoredErrors: false
99
errorFormat: symplify
1010

1111
# see https://phpstan.org/writing-php-code/phpdoc-types#global-type-aliases
@@ -48,7 +48,12 @@ parameters:
4848
narrow_return: true
4949

5050
ignoreErrors:
51+
# required generics on interface array, not helpful
5152
-
53+
message: '#Method (.*?)\:\:__construct\(\) has parameter#'
54+
identifier: missingType.generics
55+
-
56+
message: '#(.*?) with generic interface (.*?)Interface does not specify its types#'
5257
identifier: missingType.generics
5358

5459
# phpstan class instance
@@ -334,12 +339,6 @@ parameters:
334339
identifier: arrayValues.list
335340
path: rules/CodingStyle/Application/UseImportsAdder.php
336341

337-
-
338-
message: '#^Register "Rector\\Php74\\Rector\\Double\\RealToFloatTypeCastRector" service to "php74\.php" config set$#'
339-
identifier: rector.upgradeDowngradeRegisteredInSet
340-
count: 1
341-
path: rules/Php74/Rector/Double/RealToFloatTypeCastRector.php
342-
343342
-
344343
message: '#Offset float\|int\|string might not exist on string#'
345344
path: rules/Php70/EregToPcreTransformer.php
@@ -387,14 +386,11 @@ parameters:
387386
-
388387
paths:
389388
- rules/TypeDeclaration/Rector/StmtsAwareInterface/IncreaseDeclareStrictTypesRector.php
390-
- rules/TypeDeclaration/Rector/StmtsAwareInterface/DeclareStrictTypesRector.php
391389
identifier: rector.noOnlyNullReturnInRefactor
392390

393391
-
394392
identifier: rector.noIntegerRefactorReturn
395393
paths:
396-
- rules/Transform/Rector/ArrayDimFetch/ArrayDimFetchToMethodCallRector.php
397-
398394
# valid, as use REMOVE_NODE
399395
- rules/DeadCode/Rector/Expression/RemoveDeadStmtRector.php
400396
- rules/DeadCode/Rector/If_/RemoveDeadInstanceOfRector.php

src/PhpParser/NodeTraverser/AbstractImmutableNodeTraverser.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,6 @@ public function traverse(array $nodes): array
8181
*/
8282
abstract public function getVisitorsForNode(Node $node): array;
8383

84-
/**
85-
* Recursively traverse a node.
86-
*
87-
* @param Node $node Node to traverse.
88-
*/
8984
protected function traverseNode(Node $node): void
9085
{
9186
foreach ($node->getSubNodeNames() as $name) {
@@ -164,10 +159,7 @@ protected function traverseNode(Node $node): void
164159
}
165160

166161
/**
167-
* Recursively traverse array (usually of nodes).
168-
*
169-
* @param Node[] $nodes Array to traverse
170-
*
162+
* @param Node[] $nodes
171163
* @return array Result of traversal (may be original array or changed one)
172164
*/
173165
protected function traverseArray(array $nodes): array

0 commit comments

Comments
 (0)