From cda8f27398584157fa9196f4f66378ced86e9676 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Mon, 13 Jan 2020 19:42:09 +0530 Subject: [PATCH] chore: support for chaining in addScope --- src/Auth/OAuth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Auth/OAuth.php b/src/Auth/OAuth.php index f60aea9dd9..2da7917b91 100644 --- a/src/Auth/OAuth.php +++ b/src/Auth/OAuth.php @@ -92,11 +92,12 @@ abstract class OAuth * * @return array */ - protected function addScope(string $scope){ + protected function addScope(string $scope):OAuth{ // Add a scope to the scopes array if it isn't already present if (!in_array($scope, $this->scopes)){ $this->scopes[] = $scope; } + return $this; } /**