diff --git a/system/Commands/Encryption/RotateKey.php b/system/Commands/Encryption/RotateKey.php index ade51d6f12e0..0322a659ac52 100644 --- a/system/Commands/Encryption/RotateKey.php +++ b/system/Commands/Encryption/RotateKey.php @@ -229,7 +229,7 @@ private function mergePreviousKeys(string $currentKey, array $existing, int $kee } if ($keep > 0) { - $result = array_slice($result, 0, $keep); + return array_slice($result, 0, $keep); } return $result;