Skip to content

Commit 9c5b838

Browse files
committed
[ci-review] Rector Rectify
1 parent 886ae80 commit 9c5b838

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

rules/CodeQuality/Rector/ClassConstFetch/VariableConstFetchToClassConstFetchRector.php

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

55
namespace Rector\CodeQuality\Rector\ClassConstFetch;
66

7+
use PhpParser\Node\Identifier;
8+
use PhpParser\Node\Name\FullyQualified;
79
use PhpParser\Node;
810
use PhpParser\Node\Expr;
911
use PhpParser\Node\Expr\ClassConstFetch;
@@ -64,7 +66,7 @@ public function refactor(Node $node): ?ClassConstFetch
6466
return null;
6567
}
6668

67-
if (! $node->name instanceof Node\Identifier) {
69+
if (! $node->name instanceof Identifier) {
6870
return null;
6971
}
7072

@@ -79,7 +81,7 @@ public function refactor(Node $node): ?ClassConstFetch
7981
return null;
8082
}
8183

82-
$node->class = new Node\Name\FullyQualified($classObjectType->getClassName());
84+
$node->class = new FullyQualified($classObjectType->getClassName());
8385

8486
return $node;
8587
}

0 commit comments

Comments
 (0)