From d2859979396c6a70fb6858b942e2531d62121bab Mon Sep 17 00:00:00 2001 From: micbenner Date: Sat, 3 Oct 2020 15:28:25 +1300 Subject: [PATCH] Fix "Call to undefined method" --- src/Authentication/FirestoreAuthentication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Authentication/FirestoreAuthentication.php b/src/Authentication/FirestoreAuthentication.php index 25cc2c6..99d5e0e 100644 --- a/src/Authentication/FirestoreAuthentication.php +++ b/src/Authentication/FirestoreAuthentication.php @@ -152,7 +152,7 @@ private function authRequest($method, $resource, array $options = []) return FirestoreHelper::decode((string) $this->client->getLastResponse()->getBody()); } catch (BadResponseException $exception) { - $this->setLastResponse($exception->getResponse()); + $this->client->setLastResponse($exception->getResponse()); $this->handleError($exception); } }