mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
chore: support for chaining in addScope
This commit is contained in:
parent
1f1e4e0def
commit
cda8f27398
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue