diff --git a/src/DeepLClient.php b/src/DeepLClient.php index ed7f25e..cc29d6a 100644 --- a/src/DeepLClient.php +++ b/src/DeepLClient.php @@ -311,6 +311,9 @@ public function buildRephraseBodyParams( ?string $style = null, ?string $tone = null ): array { + + $params = []; + if ($targetLang !== null) { $targetLang = LanguageCode::standardizeLanguageCode($targetLang); if ($targetLang === 'en') {