Skip to content

Commit 7572344

Browse files
committed
[ci-review] Rector Rectify
1 parent c1e5d5b commit 7572344

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rules/PHPUnit100/Rector/Class_/ParentTestClassConstructorRector.php

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

77
use PhpParser\Modifiers;
88
use PhpParser\Node;
9+
use PhpParser\Node\Arg;
10+
use PhpParser\Node\Expr\ClassConstFetch;
911
use PhpParser\Node\Expr\StaticCall;
1012
use PhpParser\Node\Name;
1113
use PhpParser\Node\Stmt\Class_;
@@ -90,8 +92,8 @@ public function refactor(Node $node): ?Node
9092

9193
private function createParentConstructorCall(): StaticCall
9294
{
93-
$staticClassConstFetch = new Node\Expr\ClassConstFetch(new Name('static'), 'class');
95+
$staticClassConstFetch = new ClassConstFetch(new Name('static'), 'class');
9496

95-
return new StaticCall(new Name('parent'), MethodName::CONSTRUCT, [new Node\Arg($staticClassConstFetch)]);
97+
return new StaticCall(new Name('parent'), MethodName::CONSTRUCT, [new Arg($staticClassConstFetch)]);
9698
}
9799
}

0 commit comments

Comments
 (0)