mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-18 09:02:26 +00:00
Updated Rector to commit b0d4b15c3fd96582c6e3ed4d21cf4d30eb8742ce
b0d4b15c3f
[DeadCode] Ensure change hasChanged flag on RemoveDuplicatedCaseInSwitchRector (#5237)
This commit is contained in:
parent
c51a745c50
commit
17eadc7eb2
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user