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; } /**