Skip to content

Commit 72b70ee

Browse files
committed
feat: add config support for 8.3 and 8.4 downgrade sets
Closes rectorphp/rector#9352
1 parent f9e741c commit 72b70ee

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/Configuration/RectorConfigBuilder.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,8 @@ public function registerService(string $className, ?string $alias = null, ?strin
11691169
}
11701170

11711171
public function withDowngradeSets(
1172+
bool $php84 = false,
1173+
bool $php83 = false,
11721174
bool $php82 = false,
11731175
bool $php81 = false,
11741176
bool $php80 = false,
@@ -1184,7 +1186,11 @@ public function withDowngradeSets(
11841186
);
11851187
}
11861188

1187-
if ($php82) {
1189+
if ($php84) {
1190+
$this->sets[] = DowngradeLevelSetList::DOWN_TO_PHP_84;
1191+
} elseif ($php83) {
1192+
$this->sets[] = DowngradeLevelSetList::DOWN_TO_PHP_83;
1193+
} elseif ($php82) {
11881194
$this->sets[] = DowngradeLevelSetList::DOWN_TO_PHP_82;
11891195
} elseif ($php81) {
11901196
$this->sets[] = DowngradeLevelSetList::DOWN_TO_PHP_81;

0 commit comments

Comments
 (0)