Skip to content

Commit 5ab7399

Browse files
committed
Updated Rector to commit e4c27be2ed869ed495cb5631ec9e6efc0ddc68ee
rectorphp/rector-src@e4c27be [NodeTypeResolver] Clean up re-fill scope on PHPStanNodeScopeResolver on variable variable (#6174)
1 parent bd7006a commit 5ab7399

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = 'c82965c053f6e80ff6c257ba98bbd18bf8f4394f';
22+
public const PACKAGE_VERSION = 'e4c27be2ed869ed495cb5631ec9e6efc0ddc68ee';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2024-07-22 20:55:52';
27+
public const RELEASE_DATE = '2024-07-23 05:09:04';
2828
/**
2929
* @var int
3030
*/

src/NodeTypeResolver/PHPStan/Scope/PHPStanNodeScopeResolver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ public function processNodes(array $stmts, string $filePath, ?MutatingScope $for
177177
if ($node instanceof Assign || $node instanceof AssignOp) {
178178
$this->processAssign($node, $mutatingScope);
179179
if ($node->var instanceof Variable && $node->var->name instanceof Expr) {
180-
$this->nodeScopeResolverProcessNodes([new Expression($node->var), new Expression($node->expr)], $mutatingScope, $nodeCallback);
180+
$node->var->name->setAttribute(AttributeKey::SCOPE, $mutatingScope);
181+
$this->nodeScopeResolverProcessNodes([new Expression($node->expr)], $mutatingScope, $nodeCallback);
181182
}
182183
return;
183184
}

vendor/scoper-autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// Restore the backup and ensure the excluded files are properly marked as loaded
1515
$GLOBALS['__composer_autoload_files'] = \array_merge(
1616
$existingComposerAutoloadFiles,
17-
\array_fill_keys(['5928a00fa978807cf85d90ec3f4b0147', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a'], true)
17+
\array_fill_keys(['0e6d7bf4a5811bfa5cf40c5ccd6fae6a', '5928a00fa978807cf85d90ec3f4b0147'], true)
1818
);
1919

2020
return $loader;

0 commit comments

Comments
 (0)