mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-15 15:42:22 +00:00
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);
|
$totalKeys = \count($switch->cases);
|
||||||
foreach (\array_keys($switch->cases) as $key) {
|
foreach (\array_keys($switch->cases) as $key) {
|
||||||
|
if (isset($switch->cases[$key - 1]) && $switch->cases[$key - 1]->stmts === []) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$nextCases = [];
|
$nextCases = [];
|
||||||
for ($jumpToKey = $key + 1; $jumpToKey < $totalKeys; ++$jumpToKey) {
|
for ($jumpToKey = $key + 1; $jumpToKey < $totalKeys; ++$jumpToKey) {
|
||||||
if (!isset($switch->cases[$jumpToKey])) {
|
if (!isset($switch->cases[$jumpToKey])) {
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = '0.18.10';
|
public const PACKAGE_VERSION = '4a3e6982647ce4fdc84b1232557eaeae7e914bde';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2023-11-17 02:36:50';
|
public const RELEASE_DATE = '2023-11-18 09:17:20';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user