Skip to content

Commit 92aa3cf

Browse files
committed
misc
1 parent c2a2d40 commit 92aa3cf

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

phpstan.neon

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -338,12 +343,6 @@ parameters:
338343
identifier: arrayValues.list
339344
path: rules/CodingStyle/Application/UseImportsAdder.php
340345

341-
-
342-
message: '#^Register "Rector\\Php74\\Rector\\Double\\RealToFloatTypeCastRector" service to "php74\.php" config set$#'
343-
identifier: rector.upgradeDowngradeRegisteredInSet
344-
count: 1
345-
path: rules/Php74/Rector/Double/RealToFloatTypeCastRector.php
346-
347346
-
348347
message: '#Offset float\|int\|string might not exist on string#'
349348
path: rules/Php70/EregToPcreTransformer.php
@@ -391,14 +390,11 @@ parameters:
391390
-
392391
paths:
393392
- rules/TypeDeclaration/Rector/StmtsAwareInterface/IncreaseDeclareStrictTypesRector.php
394-
- rules/TypeDeclaration/Rector/StmtsAwareInterface/DeclareStrictTypesRector.php
395393
identifier: rector.noOnlyNullReturnInRefactor
396394

397395
-
398396
identifier: rector.noIntegerRefactorReturn
399397
paths:
400-
- rules/Transform/Rector/ArrayDimFetch/ArrayDimFetchToMethodCallRector.php
401-
402398
# valid, as use REMOVE_NODE
403399
- rules/DeadCode/Rector/Expression/RemoveDeadStmtRector.php
404400
- 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)