mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
chore: support for chaining in addScope
This commit is contained in:
1 parent
1f1e4e0def
commit
cda8f27398
1 file changed
+2
-1
+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