mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-14 12:32:00 +02:00
Updated Rector to commit 55a787b9a2a18d7b131e74f0bc0d244989f6c92e
55a787b9a2
[CodeQuality] Handle crash with call inside loop on SimplifyForeachToCoalescingRector (#5436)
This commit is contained in:
parent
2b45fbe814
commit
8728d93e41
@ -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_) {
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user