We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c9a160 commit 29ba121Copy full SHA for 29ba121
src/Rector/MethodCall/JsonCallToExplicitJsonCallRector.php
@@ -7,6 +7,7 @@
7
use PhpParser\Node;
8
use PhpParser\Node\Expr\MethodCall;
9
use PhpParser\Node\Identifier;
10
+use PhpParser\Node\Scalar\String_;
11
use PHPStan\Type\ObjectType;
12
use Rector\Core\Rector\AbstractRector;
13
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
@@ -67,7 +68,7 @@ private function updateCall(MethodCall $methodCall): ?MethodCall
67
68
$arg = $methodCall->getArgs()[0];
69
$argValue = $arg->value;
70
- if (! $argValue instanceof Node\Scalar\String_) {
71
+ if (! $argValue instanceof String_) {
72
return null;
73
}
74
0 commit comments