From 8e00ed945003357e55600fac4816db13c2dd32be Mon Sep 17 00:00:00 2001 From: zigzagdev Date: Mon, 11 May 2026 13:03:03 +0900 Subject: [PATCH] fix: add initialize property --- src/DeepLClient.php | 3 +++ 1 file changed, 3 insertions(+) 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') {