We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68179ed commit bc5d1dfCopy full SHA for bc5d1df
src/GoogleTranslate.php
@@ -333,7 +333,7 @@ public function getResponse(string $string): array
333
try {
334
$bodyArray = json_decode($bodyJson, true, flags: JSON_THROW_ON_ERROR);
335
} catch (JsonException) {
336
- throw new UnexpectedValueException('Data cannot be decoded or it is deeper than the recursion limit');
+ throw new TranslationDecodingException('Data cannot be decoded or it is deeper than the recursion limit');
337
}
338
339
return $bodyArray;
0 commit comments