diff --git a/Classes/Service/ImageRecognition/AigudeImageRecognitionService.php b/Classes/Service/ImageRecognition/AigudeImageRecognitionService.php index 54bc730..fd5fde4 100644 --- a/Classes/Service/ImageRecognition/AigudeImageRecognitionService.php +++ b/Classes/Service/ImageRecognition/AigudeImageRecognitionService.php @@ -20,7 +20,7 @@ public function sendFileToApi(FileInterface $fileObject, string $textPrompt = '' $urlParts[] = 'prompt=' . urlencode($textPrompt); } if (!empty($targetLanguage)) { - $urlParts[] = '&target_lang=' . urlencode(LanguageScriptUtility::getLanguageScript($targetLanguage)); + $urlParts[] = '&target_lang=' . urlencode((string) LanguageScriptUtility::getLanguageScript($targetLanguage)); } $url = $this->domain . '/img2desc_file/' . '?' . implode('&', $urlParts);