Skip to content

Commit 2fb814d

Browse files
committed
fix guzzle
1 parent 46bf42a commit 2fb814d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Services/NotificationManager/NotificationManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function send($function, $data)
5959
);
6060

6161
if ($response->getStatusCode() < 300) {
62-
return $response->json();
62+
return json_decode($response->getBody()->getContents());
6363
}
6464
if ($response->getStatusCode() == 503) {
6565
throw new TemporaryException("Temporal error", 503);

tests/Services/NotificationManager/NotificationManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function testLoggedEmail()
2929

3030
$response = $notificationManager->send("logged_email", $data);
3131

32-
$this->assertEquals($responseExpected, $response);
32+
$this->assertEquals($responseExpected, (array)$response);
3333
}
3434

3535
public function testLoggedEmailPermanentException()

0 commit comments

Comments
 (0)