Updated Rector to commit 55a787b9a2a18d7b131e74f0bc0d244989f6c92e

55a787b9a2 [CodeQuality] Handle crash with call inside loop on SimplifyForeachToCoalescingRector (#5436)
This commit is contained in:
Tomas Votruba 2024-01-06 05:25:58 +00:00
parent 2b45fbe814
commit 8728d93e41
2 changed files with 5 additions and 2 deletions

View File

@ -89,6 +89,9 @@ CODE_SAMPLE
}
$nextStmt = $node->stmts[$key + 1] ?? null;
$return = $this->processForeachNodeWithReturnInside($foreach, $foreachReturnOrAssign, $nextStmt);
if (!$return instanceof Return_) {
continue;
}
$node->stmts[$key] = $return;
// cleanup next return
if ($nextStmt instanceof Return_) {

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '3d71ae36b00e22fb5430e1812af95182c0e58904';
public const PACKAGE_VERSION = '55a787b9a2a18d7b131e74f0bc0d244989f6c92e';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-01-05 20:40:58';
public const RELEASE_DATE = '2024-01-06 12:23:50';
/**
* @var int
*/