mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 8ade0b9e46aff3e6f755a9561579cdc0c9eb9b0e
8ade0b9e46
[EarlyReturn] Clena up equal node check on IfAndAnalyzer::isIfStmtExprUsedInNextReturn() (#5710)
This commit is contained in:
parent
4026ff15b0
commit
7660d5730f
|
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue