diff --git a/rules/DeadCode/Rector/Switch_/RemoveDuplicatedCaseInSwitchRector.php b/rules/DeadCode/Rector/Switch_/RemoveDuplicatedCaseInSwitchRector.php index 25b6e614c8f..9dcfd2cd46d 100644 --- a/rules/DeadCode/Rector/Switch_/RemoveDuplicatedCaseInSwitchRector.php +++ b/rules/DeadCode/Rector/Switch_/RemoveDuplicatedCaseInSwitchRector.php @@ -108,9 +108,9 @@ CODE_SAMPLE $key += \count($nextCases); } } - private function areSwitchStmtsEqualsAndWithBreak(Case_ $currentCase, Case_ $nextOrPrevCase) : bool + private function areSwitchStmtsEqualsAndWithBreak(Case_ $currentCase, Case_ $nextCase) : bool { - if (!$this->nodeComparator->areNodesEqual($currentCase->stmts, $nextOrPrevCase->stmts)) { + if (!$this->nodeComparator->areNodesEqual($currentCase->stmts, $nextCase->stmts)) { return \false; } foreach ($currentCase->stmts as $stmt) { diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index fd1161f4b22..7f4b189ca22 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 = '42b697f65f0c648cc45abcc5b9e32a16a7967caa'; + public const PACKAGE_VERSION = '61d68c89b434271c793fbbcc8e6252e9f3e0e7eb'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-11-11 18:08:36'; + public const RELEASE_DATE = '2023-11-12 03:53:10'; /** * @var int */