Updated Rector to commit b0d4b15c3fd96582c6e3ed4d21cf4d30eb8742ce

b0d4b15c3f [DeadCode] Ensure change hasChanged flag on RemoveDuplicatedCaseInSwitchRector (#5237)
This commit is contained in:
Tomas Votruba 2023-11-10 09:02:20 +00:00
parent c51a745c50
commit 17eadc7eb2
2 changed files with 3 additions and 2 deletions

View File

@ -124,6 +124,7 @@ CODE_SAMPLE
foreach ($switch->cases as $case) { foreach ($switch->cases as $case) {
if ($previousCase instanceof Case_ && $this->areSwitchStmtsEqualsAndWithBreak($case, $previousCase)) { if ($previousCase instanceof Case_ && $this->areSwitchStmtsEqualsAndWithBreak($case, $previousCase)) {
$previousCase->stmts = []; $previousCase->stmts = [];
$this->hasChanged = \true;
} }
$previousCase = $case; $previousCase = $case;
} }

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = 'bee1dae395490dd91a86230e1886b514288dfa62'; public const PACKAGE_VERSION = 'b0d4b15c3fd96582c6e3ed4d21cf4d30eb8742ce';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2023-11-10 13:57:49'; public const RELEASE_DATE = '2023-11-10 08:58:55';
/** /**
* @var int * @var int
*/ */