mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 4a3e6982647ce4fdc84b1232557eaeae7e914bde
4a3e698264
[DeadCode] Skip multi no stmts on RemoveDuplicatedCaseInSwitchRector (#5258)
This commit is contained in:
parent
f36bc0a707
commit
912487ba8d
|
@ -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])) {
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue