Skip to content

Commit

Permalink
Updated Rector to commit c82965c053f6e80ff6c257ba98bbd18bf8f4394f
Browse files Browse the repository at this point in the history
rectorphp/rector-src@c82965c [NodeTypeResolver] Handle crash on variable variable with assign on FirstClassCallableRector (#6173)
  • Loading branch information
TomasVotruba committed Jul 22, 2024
1 parent d35c1aa commit bd7006a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '938f4a2a24ec32f7ee9e9447abad7f37b1046d3f';
public const PACKAGE_VERSION = 'c82965c053f6e80ff6c257ba98bbd18bf8f4394f';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-07-22 09:21:58';
public const RELEASE_DATE = '2024-07-22 20:55:52';
/**
* @var int
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ public function processNodes(array $stmts, string $filePath, ?MutatingScope $for
}
if ($node instanceof Assign || $node instanceof AssignOp) {
$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);
}
return;
}
if ($node instanceof Ternary) {
Expand Down

0 comments on commit bd7006a

Please sign in to comment.