From 002a3071cbee4a994e9b32e2b0be6842440b1cf8 Mon Sep 17 00:00:00 2001 From: Mirko Chialastri Date: Sat, 11 Jan 2020 23:14:44 +0100 Subject: [PATCH 1/2] deprecated: $response->getJson instead $response->json --- src/Mailer/Transport/SendGridTransport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mailer/Transport/SendGridTransport.php b/src/Mailer/Transport/SendGridTransport.php index 8f10572..1856ad0 100644 --- a/src/Mailer/Transport/SendGridTransport.php +++ b/src/Mailer/Transport/SendGridTransport.php @@ -236,7 +236,7 @@ protected function _sendEmail() $response = $http ->post("{$this->getConfig('apiEndpoint')}/mail/send", json_encode($this->_reqParams), $headers); - return $response->json; + return $response->getJson(); } /** From d029e667750794b1d7c7b11ac8ae3a9bbf5159a1 Mon Sep 17 00:00:00 2001 From: Mirko Chialastri Date: Sat, 11 Jan 2020 23:15:17 +0100 Subject: [PATCH 2/2] deprecated: $response->getJson instead $response->json