Updated Rector to commit 4a3e6982647ce4fdc84b1232557eaeae7e914bde

4a3e698264 [DeadCode] Skip multi no stmts on RemoveDuplicatedCaseInSwitchRector (#5258)
This commit is contained in:
Tomas Votruba 2023-11-18 02:19:29 +00:00
parent f36bc0a707
commit 912487ba8d
2 changed files with 5 additions and 2 deletions

View File

@ -85,6 +85,9 @@ CODE_SAMPLE
{
$totalKeys = \count($switch->cases);
foreach (\array_keys($switch->cases) as $key) {
if (isset($switch->cases[$key - 1]) && $switch->cases[$key - 1]->stmts === []) {
continue;
}
$nextCases = [];
for ($jumpToKey = $key + 1; $jumpToKey < $totalKeys; ++$jumpToKey) {
if (!isset($switch->cases[$jumpToKey])) {

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '0.18.10';
public const PACKAGE_VERSION = '4a3e6982647ce4fdc84b1232557eaeae7e914bde';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-11-17 02:36:50';
public const RELEASE_DATE = '2023-11-18 09:17:20';
/**
* @var int
*/