From e4d5f0429f5ed7a0074f64eb9cfeacf737338f81 Mon Sep 17 00:00:00 2001 From: Francisco Seipel Date: Mon, 4 Nov 2024 11:36:21 +0100 Subject: [PATCH] [TASK] Lint --- .../Service/ImageRecognition/AigudeImageRecognitionService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);