diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 616edc99eb9..c2b1f3623b6 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -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 */ diff --git a/src/NodeTypeResolver/PHPStan/Scope/PHPStanNodeScopeResolver.php b/src/NodeTypeResolver/PHPStan/Scope/PHPStanNodeScopeResolver.php index aa4133ceb23..b7dc4db09cb 100644 --- a/src/NodeTypeResolver/PHPStan/Scope/PHPStanNodeScopeResolver.php +++ b/src/NodeTypeResolver/PHPStan/Scope/PHPStanNodeScopeResolver.php @@ -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) {