Skip to content

Commit

Permalink
Clean up code style
Browse files Browse the repository at this point in the history
  • Loading branch information
driftingly committed Jan 3, 2024
1 parent 6c9a160 commit 29ba121
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Rector/MethodCall/JsonCallToExplicitJsonCallRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use PhpParser\Node;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Identifier;
use PhpParser\Node\Scalar\String_;
use PHPStan\Type\ObjectType;
use Rector\Core\Rector\AbstractRector;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
Expand Down Expand Up @@ -67,7 +68,7 @@ private function updateCall(MethodCall $methodCall): ?MethodCall
$arg = $methodCall->getArgs()[0];
$argValue = $arg->value;

if (! $argValue instanceof Node\Scalar\String_) {
if (! $argValue instanceof String_) {
return null;
}

Expand Down

0 comments on commit 29ba121

Please sign in to comment.