Skip to content

Commit 4ea80ec

Browse files
committed
Updated Rector to commit 56fa09d6ace1b1cef0c5445be65fbedfdb61e0d9
rectorphp/rector-src@56fa09d Fix RemoveDeadIfBlockRector dropping else block when merging empty if with elseif (#8022)
1 parent 1cffe7e commit 4ea80ec

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

rules/DeadCode/Rector/If_/RemoveDeadIfBlockRector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public function refactor(Node $node)
123123
if (count($node->elseifs) > 1) {
124124
$if->elseifs = \array_slice($node->elseifs, 1);
125125
}
126+
$if->else = $node->else;
126127
return $this->refactor($if) ?? $if;
127128
}
128129
if ($node->else instanceof Else_) {

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '9305ed007d63a7b3b0d86f2bf0c82b5ddfd531af';
22+
public const PACKAGE_VERSION = '56fa09d6ace1b1cef0c5445be65fbedfdb61e0d9';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2026-06-02 00:27:39';
27+
public const RELEASE_DATE = '2026-06-02 21:16:56';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)