Skip to content

Commit

Permalink
Updated Rector to commit e4c27be2ed869ed495cb5631ec9e6efc0ddc68ee
Browse files Browse the repository at this point in the history
rectorphp/rector-src@e4c27be [NodeTypeResolver] Clean up re-fill scope on PHPStanNodeScopeResolver on variable variable (#6174)
  • Loading branch information
TomasVotruba committed Jul 22, 2024
1 parent bd7006a commit 5ab7399
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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 = 'c82965c053f6e80ff6c257ba98bbd18bf8f4394f';
public const PACKAGE_VERSION = 'e4c27be2ed869ed495cb5631ec9e6efc0ddc68ee';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-07-22 20:55:52';
public const RELEASE_DATE = '2024-07-23 05:09:04';
/**
* @var int
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ 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);
$node->var->name->setAttribute(AttributeKey::SCOPE, $mutatingScope);
$this->nodeScopeResolverProcessNodes([new Expression($node->expr)], $mutatingScope, $nodeCallback);
}
return;
}
Expand Down
2 changes: 1 addition & 1 deletion vendor/scoper-autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// Restore the backup and ensure the excluded files are properly marked as loaded
$GLOBALS['__composer_autoload_files'] = \array_merge(
$existingComposerAutoloadFiles,
\array_fill_keys(['5928a00fa978807cf85d90ec3f4b0147', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a'], true)
\array_fill_keys(['0e6d7bf4a5811bfa5cf40c5ccd6fae6a', '5928a00fa978807cf85d90ec3f4b0147'], true)
);

return $loader;
Expand Down

0 comments on commit 5ab7399

Please sign in to comment.