mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
chore: support for chaining in addScope
This commit is contained in:
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user