diff --git a/rules/DeadCode/Rector/Switch_/RemoveDuplicatedCaseInSwitchRector.php b/rules/DeadCode/Rector/Switch_/RemoveDuplicatedCaseInSwitchRector.php index 7a8f6dc0134..13d1e8b46ef 100644 --- a/rules/DeadCode/Rector/Switch_/RemoveDuplicatedCaseInSwitchRector.php +++ b/rules/DeadCode/Rector/Switch_/RemoveDuplicatedCaseInSwitchRector.php @@ -124,6 +124,7 @@ CODE_SAMPLE foreach ($switch->cases as $case) { if ($previousCase instanceof Case_ && $this->areSwitchStmtsEqualsAndWithBreak($case, $previousCase)) { $previousCase->stmts = []; + $this->hasChanged = \true; } $previousCase = $case; } diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index e5d0ef5c065..0b32770a24f 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = 'bee1dae395490dd91a86230e1886b514288dfa62'; + public const PACKAGE_VERSION = 'b0d4b15c3fd96582c6e3ed4d21cf4d30eb8742ce'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-11-10 13:57:49'; + public const RELEASE_DATE = '2023-11-10 08:58:55'; /** * @var int */