mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 14:03:41 +01:00
Updated Rector to commit c57c164bae7c97212384f5120857bddfee329a7d
c57c164bae
[CodeQuality] Handle crash on named arg on deep closure on OptionalParametersAfterRequiredRector (#5671)
This commit is contained in:
parent
dc6d59d8bb
commit
e7800d7a95
@ -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
|
||||
*/
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user