mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-12 03:25:27 +01:00
Updated Rector to commit 30abe1ddd49b95969a9e0921eb7052225a133591
30abe1ddd4
[NodeManipulator] Clean up double traverse on StmtsManipulator::isVariableUsedInNextStmt() (#5970)
This commit is contained in:
parent
75cc5ace35
commit
cf6a9e0350
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'ee948d2a30cc4b674c866bc41d34c9e16b45faab';
|
||||
public const PACKAGE_VERSION = '30abe1ddd49b95969a9e0921eb7052225a133591';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-06-14 18:44:02';
|
||||
public const RELEASE_DATE = '2024-06-14 19:02:06';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -82,9 +82,6 @@ final class StmtsManipulator
|
||||
return \false;
|
||||
}
|
||||
$stmts = \array_slice($stmtsAware instanceof StmtsAwareInterface ? $stmtsAware->stmts : $stmtsAware, $jumpToKey, null, \true);
|
||||
if ((bool) $this->betterNodeFinder->findVariableOfName($stmts, $variableName)) {
|
||||
return \true;
|
||||
}
|
||||
$variable = new Variable($variableName);
|
||||
return (bool) $this->betterNodeFinder->findFirst($stmts, function (Node $subNode) use($variable) : bool {
|
||||
return $this->exprUsedInNodeAnalyzer->isUsed($subNode, $variable);
|
||||
|
Loading…
x
Reference in New Issue
Block a user