Updated Rector to commit 8ade0b9e46aff3e6f755a9561579cdc0c9eb9b0e

8ade0b9e46 [EarlyReturn] Clena up equal node check on IfAndAnalyzer::isIfStmtExprUsedInNextReturn() (#5710)
This commit is contained in:
Tomas Votruba 2024-03-11 02:23:45 +00:00
parent 4026ff15b0
commit 7660d5730f
2 changed files with 3 additions and 8 deletions

View File

@ -43,12 +43,7 @@ final class IfAndAnalyzer
}
$ifExprs = $this->betterNodeFinder->findInstanceOf($if->stmts, Expr::class);
return (bool) $this->betterNodeFinder->findFirst($return->expr, function (Node $node) use($ifExprs) : bool {
foreach ($ifExprs as $ifExpr) {
if ($this->nodeComparator->areNodesEqual($node, $ifExpr)) {
return \true;
}
}
return \false;
return $this->nodeComparator->isNodeEqual($node, $ifExprs);
});
}
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '2adeacc410de9304137574d2e80cf97c9f67dfa5';
public const PACKAGE_VERSION = '8ade0b9e46aff3e6f755a9561579cdc0c9eb9b0e';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-03-11 09:10:24';
public const RELEASE_DATE = '2024-03-11 09:21:31';
/**
* @var int
*/