Skip to content

Commit

Permalink
Fix style;
Browse files Browse the repository at this point in the history
  • Loading branch information
hans-thomas committed Jan 14, 2025
1 parent a5e03f9 commit 9e97fbb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace RectorLaravel\Rector\Coalesce;

use PhpParser\Node\Expr\Throw_;
use PhpParser\Node;
use PhpParser\Node\Arg;
use PhpParser\Node\Expr\BinaryOp\Coalesce;
Expand Down Expand Up @@ -108,13 +109,13 @@ public function refactor(Node $node): MethodCall|StaticCall|FuncCall|null
$objectType,
$applyDefaultWith->getObjectType()) &&
$this->isName($call->name, $applyDefaultWith->getMethodName()) &&
!$node->right instanceof Node\Expr\Throw_
! $node->right instanceof Throw_
) {
$valid = true;
} elseif (
$applyDefaultWith->getObjectType() === null &&
$this->isName($call->name, $applyDefaultWith->getMethodName()) &&
!$node->right instanceof Node\Expr\Throw_
! $node->right instanceof Throw_
) {
$valid = true;
}
Expand Down

0 comments on commit 9e97fbb

Please sign in to comment.