Skip to content

Commit 8bd045f

Browse files
committed
[ci-review] Rector Rectify
1 parent 08735ab commit 8bd045f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Reporting/DeprecatedRulesReporter.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Rector\Reporting;
66

7+
use Rector\PhpParserNode\FileNode;
78
use Rector\Configuration\Deprecation\Contract\DeprecatedInterface;
89
use Rector\Configuration\Option;
910
use Rector\Configuration\Parameter\SimpleParameterProvider;
@@ -60,7 +61,7 @@ public function reportDeprecatedSkippedRules(): void
6061
public function reportDeprecatedRectorUnsupportedMethods(): void
6162
{
6263
// to be added in related PR
63-
if (! class_exists(\Rector\PhpParserNode\FileNode::class)) {
64+
if (! class_exists(FileNode::class)) {
6465
return;
6566
}
6667

@@ -70,7 +71,7 @@ public function reportDeprecatedRectorUnsupportedMethods(): void
7071
$this->symfonyStyle->warning(sprintf(
7172
'Rector rule "%s" uses deprecated "beforeTraverse" method. It should not be used, as will be marked as final. Not part of RectorInterface contract. Use "%s" to hook into file-level changes instead.',
7273
$rector::class,
73-
\Rector\PhpParserNode\FileNode::class
74+
FileNode::class
7475
));
7576
}
7677
}

0 commit comments

Comments
 (0)