Updated Rector to commit c57c164bae7c97212384f5120857bddfee329a7d

c57c164bae [CodeQuality] Handle crash on named arg on deep closure on OptionalParametersAfterRequiredRector (#5671)
This commit is contained in:
Tomas Votruba 2024-02-28 14:45:00 +00:00
parent dc6d59d8bb
commit e7800d7a95
2 changed files with 6 additions and 3 deletions

View File

@ -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
*/

View File

@ -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);