Skip to content

Commit 10c6690

Browse files
committed
Update return types
1 parent 2bcb8a5 commit 10c6690

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

doc/authorizations.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ $authorization = $github->api('authorizations')->reset(1234, 'token');
6060
#### Revoke an authorization
6161

6262
```php
63-
$authorization = $github->api('authorizations')->revoke(1234, 'token');
63+
$github->api('authorizations')->revoke(1234, 'token');
6464
```
6565

6666
#### Revoke all authorizations
6767

6868
```php
69-
$authorization = $github->api('authorizations')->revokeAll(1234);
69+
$github->api('authorizations')->revokeAll(1234);
7070
```

lib/Github/Api/Authorizations.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,10 @@ public function reset($clientId, $token)
103103
*
104104
* @param $clientId
105105
* @param $token
106-
*
107-
* @return array
108106
*/
109107
public function revoke($clientId, $token)
110108
{
111-
return $this->delete('applications/'.rawurlencode($clientId).'/tokens/'.rawurlencode($token));
109+
$this->delete('applications/'.rawurlencode($clientId).'/tokens/'.rawurlencode($token));
112110
}
113111

114112
/**

0 commit comments

Comments
 (0)