Skip to content

Commit

Permalink
Fix correct strings utils
Browse files Browse the repository at this point in the history
  • Loading branch information
florisbosch committed Jul 25, 2024
1 parent da231c4 commit 97240df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rules/Carbon/NodeFactory/CarbonCallFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
declare (strict_types=1);
namespace Rector\Carbon\NodeFactory;

use RectorPrefix202407\Nette\Utils\Strings;
use Nette\Utils\Strings;
use PhpParser\Node\Arg;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Expr\StaticCall;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@ public function processNodes(
$this->processAssign($node, $mutatingScope);

if ($node->var instanceof Variable && $node->var->name instanceof Expr) {
$this->nodeScopeResolverProcessNodes([new Expression($node->var), new Expression($node->expr)], $mutatingScope, $nodeCallback);
$this->nodeScopeResolverProcessNodes(
[new Expression($node->var), new Expression($node->expr)],
$mutatingScope,
$nodeCallback
);
}

return;
Expand Down

0 comments on commit 97240df

Please sign in to comment.