diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 00e1cfa9358..0713fd60c91 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 = '4a2811d0be372ef590c253a493f49bbb6745b524'; + public const PACKAGE_VERSION = 'c57c164bae7c97212384f5120857bddfee329a7d'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-02-28 19:33:15'; + public const RELEASE_DATE = '2024-02-28 21:42:40'; /** * @var int */ diff --git a/src/PHPStan/NodeVisitor/ExprScopeFromStmtNodeVisitor.php b/src/PHPStan/NodeVisitor/ExprScopeFromStmtNodeVisitor.php index 5939fae5db0..3df42a87633 100644 --- a/src/PHPStan/NodeVisitor/ExprScopeFromStmtNodeVisitor.php +++ b/src/PHPStan/NodeVisitor/ExprScopeFromStmtNodeVisitor.php @@ -56,7 +56,10 @@ final class ExprScopeFromStmtNodeVisitor extends NodeVisitorAbstract if ($node instanceof VirtualNode) { return null; } - if (!$node instanceof Expr || $node->getAttribute(AttributeKey::EXPRESSION_DEPTH) < 2) { + if (!$node instanceof Expr) { + return null; + } + if ($node->getAttribute(AttributeKey::EXPRESSION_DEPTH) < 2 && $node->getAttribute(AttributeKey::IS_ARG_VALUE) !== \true) { return null; } $scope = $node->getAttribute(AttributeKey::SCOPE);