Skip to content

Commit 3a0b3e0

Browse files
committed
Fix PHPStan @return unused type return.type on RectorInterface
1 parent ab0c8b7 commit 3a0b3e0

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

phpstan.neon

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,5 +354,3 @@ parameters:
354354
-
355355
path: rules/Renaming/Rector/Name/RenameClassRector.php
356356
identifier: return.type
357-
358-
- '#Method Rector\\(.*?)Rector\:\:refactor\(\) never returns \d so it can be removed from the return type#'

src/Contract/Rector/RectorInterface.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Rector\Contract\Rector;
66

77
use PhpParser\Node;
8-
use PhpParser\NodeTraverser;
98
use PhpParser\NodeVisitor;
109
use Symplify\RuleDocGenerator\Contract\DocumentedRuleInterface;
1110

@@ -21,7 +20,7 @@ public function getNodeTypes(): array;
2120

2221
/**
2322
* Process Node of matched type
24-
* @return Node|Node[]|null|NodeTraverser::*
23+
* @return Node|Node[]|null|int
2524
*/
2625
public function refactor(Node $node);
2726
}

0 commit comments

Comments
 (0)