Skip to content

Commit e9e9ed0

Browse files
committed
Cast error code to int
1 parent 44abcf3 commit e9e9ed0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CmsmsClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function send(CmsmsMessage $message, string $recipient): void
4848
*/
4949
$body = $response->getBody()->getContents();
5050
$errorCode = Arr::get(json_decode($body, true), 'errorCode');
51-
if ($errorCode !== 0) {
51+
if ((int) $errorCode !== 0) {
5252
SMSSendingFailedEvent::dispatch($body);
5353

5454
throw CouldNotSendNotification::serviceRespondedWithAnError($body);

0 commit comments

Comments
 (0)