From a09abbed44affe92ad7a2ae8757fbb0caec52186 Mon Sep 17 00:00:00 2001 From: Wisdom Ebong Date: Mon, 5 Jul 2021 10:11:08 +0100 Subject: [PATCH] chore: update google scopes --- src/Gmail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gmail.php b/src/Gmail.php index f1b5351..af7f1a9 100644 --- a/src/Gmail.php +++ b/src/Gmail.php @@ -79,7 +79,7 @@ public function login($email = null) $this->setAccessType('offline'); - $this->setScopes(Google_Service_Gmail::GMAIL_READONLY, Google_Service_Gmail::GMAIL_SEND); + $this->setScopes([Google_Service_Gmail::GMAIL_READONLY, Google_Service_Gmail::GMAIL_SEND]); return $this->createAuthUrl(); }