Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Aug 8, 2024
1 parent d9f4b4b commit a42fd0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Service/TextMasterApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ public function extractErrorFromResponse(ResponseInterface $response, string $fo
foreach ($decodedResponse['errors'] as $type => $messagesArray) {
$errorMsg .= "Type of error: {$type} ".$lineBreaker;
if (\is_array($messagesArray)) {
/** @var string $msg */
foreach ($messagesArray as $msg) {
$errorMsg .= $msg.$lineBreaker;
}
Expand Down

0 comments on commit a42fd0f

Please sign in to comment.