We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0940d8b commit 328d024Copy full SHA for 328d024
rules/DowngradePhp80/Rector/Instanceof_/DowngradeInstanceofStringableRector.php
@@ -8,7 +8,6 @@
8
use PhpParser\Node\Expr\Instanceof_;
9
use PhpParser\Node\Name\FullyQualified;
10
use PhpParser\Node\Scalar\String_;
11
-use Rector\PhpParser\Node\NodeFactory;
12
use Rector\Rector\AbstractRector;
13
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
14
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
@@ -19,11 +18,6 @@
19
18
*/
20
final class DowngradeInstanceofStringableRector extends AbstractRector
21
{
22
- public function __construct(
23
- private readonly NodeFactory $nodeFactory
24
- ) {
25
- }
26
-
27
public function getRuleDefinition(): RuleDefinition
28
29
return new RuleDefinition('change instanceof Stringable to method_exists', [
0 commit comments