Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 19, 2024
1 parent 4494654 commit 503176f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rules/Carbon/Rector/New_/DateTimeInstanceToCarbonRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Rector\Carbon\Rector\New_;

use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node;
use PhpParser\Node\Expr\New_;
use PhpParser\Node\Expr\StaticCall;
Expand Down Expand Up @@ -67,7 +68,7 @@ public function refactor(Node $node): ?Node
return null;
}

public function refactorWithClass(New_ $new, string $className): Node\Expr\MethodCall|StaticCall|null
public function refactorWithClass(New_ $new, string $className): MethodCall|StaticCall|null
{
if ($new->isFirstClassCallable()) {
return null;
Expand Down

0 comments on commit 503176f

Please sign in to comment.