Updated Rector to commit 30abe1ddd49b95969a9e0921eb7052225a133591

30abe1ddd4 [NodeManipulator] Clean up double traverse on StmtsManipulator::isVariableUsedInNextStmt() (#5970)
This commit is contained in:
Tomas Votruba 2024-06-14 12:05:37 +00:00
parent 75cc5ace35
commit cf6a9e0350
2 changed files with 2 additions and 5 deletions

View File

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

View File

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