From 17eadc7eb2354d69928d28858fd96f1278def63d Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Fri, 10 Nov 2023 09:02:20 +0000 Subject: [PATCH] Updated Rector to commit b0d4b15c3fd96582c6e3ed4d21cf4d30eb8742ce https://github.com/rectorphp/rector-src/commit/b0d4b15c3fd96582c6e3ed4d21cf4d30eb8742ce [DeadCode] Ensure change hasChanged flag on RemoveDuplicatedCaseInSwitchRector (#5237) --- .../Rector/Switch_/RemoveDuplicatedCaseInSwitchRector.php | 1 + src/Application/VersionResolver.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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 */