mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit cd23b1fa90343d4f4b1c8f0d606c0eba8d194597
cd23b1fa90
Clean up scope skip scope check on ExprScopeFromStmtNodeVisitor (#5776)
This commit is contained in:
parent
045db2fd56
commit
e538a96c9b
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'f254215a5ac2877d4fb99dbf7f7ab44c070f1333';
|
||||
public const PACKAGE_VERSION = 'cd23b1fa90343d4f4b1c8f0d606c0eba8d194597';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-03-27 02:23:32';
|
||||
public const RELEASE_DATE = '2024-03-26 20:16:11';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
|
@ -5,6 +5,7 @@ namespace Rector\PHPStan\NodeVisitor;
|
|||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Expr;
|
||||
use PhpParser\Node\Expr\CallLike;
|
||||
use PhpParser\Node\Expr\Closure;
|
||||
use PhpParser\Node\Stmt;
|
||||
use PhpParser\Node\Stmt\ClassLike;
|
||||
|
@ -77,6 +78,6 @@ final class ExprScopeFromStmtNodeVisitor extends NodeVisitorAbstract
|
|||
}
|
||||
private function shouldSkipExpr(Expr $expr) : bool
|
||||
{
|
||||
return $expr->getAttribute(AttributeKey::EXPRESSION_DEPTH) < 2 && $expr->getAttribute(AttributeKey::IS_ARG_VALUE) !== \true && $expr->getAttribute(AttributeKey::IS_PARAM_VAR) === \true;
|
||||
return $expr->getAttribute(AttributeKey::EXPRESSION_DEPTH) < 2 && !$expr instanceof CallLike;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue