Skip to content

Commit a41b97c

Browse files
committed
cleasns up
1 parent 2f96832 commit a41b97c

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

rules/DowngradePhp83/Rector/ClassConstFetch/DowngradeDynamicClassConstFetchRector.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use PhpParser\Node\Expr\ClassConstFetch;
1010
use PhpParser\Node\Identifier;
1111
use PhpParser\Node\Scalar\String_;
12-
use Rector\NodeManipulator\PropertyDecorator;
1312
use Rector\Rector\AbstractRector;
1413
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
1514
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
@@ -21,11 +20,6 @@
2120
*/
2221
final class DowngradeDynamicClassConstFetchRector extends AbstractRector
2322
{
24-
public function __construct(
25-
private readonly PropertyDecorator $propertyDecorator
26-
) {
27-
}
28-
2923
/**
3024
* @return array<class-string<Node>>
3125
*/
@@ -63,10 +57,7 @@ public function refactor(Node $node): ?Node
6357

6458
return $this->nodeFactory->createFuncCall('constant', [
6559
new Concat(
66-
new Concat(
67-
new ClassConstFetch($node->class, new Identifier('class')),
68-
new String_('::')
69-
),
60+
new Concat(new ClassConstFetch($node->class, new Identifier('class')), new String_('::')),
7061
$node->name
7162
),
7263
]);

0 commit comments

Comments
 (0)