diff --git a/rector.php b/rector.php index d8af415767df..b5c0cc63b29b 100644 --- a/rector.php +++ b/rector.php @@ -202,4 +202,4 @@ // keep '\\' prefix string on string '\Foo\Bar' StringClassNameToClassConstantRector::SHOULD_KEEP_PRE_SLASH => true, ]) - ->withCodeQualityLevel(40); + ->withCodeQualityLevel(41); diff --git a/system/CLI/CLI.php b/system/CLI/CLI.php index b8ea4714f39b..b7c9ed64e2de 100644 --- a/system/CLI/CLI.php +++ b/system/CLI/CLI.php @@ -318,11 +318,7 @@ public static function promptByMultipleKeys(string $text, array $options): array if ($opts === []) { $extraOutput = $extraOutputDefault; } else { - $optsKey = []; - - foreach (array_keys($opts) as $key) { - $optsKey[] = $key; - } + $optsKey = array_keys($opts); $extraOutput = '[' . $extraOutputDefault . ', ' . implode(', ', $optsKey) . ']'; $extraOutput = 'You can specify multiple values separated by commas.' . PHP_EOL . $extraOutput; }