You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @deprecated GitHub will remove this endpoint on 13th November 2020. No replacement will be offered. The "web application flow" should be used instead.
27
-
*/
28
-
publicfunctionall()
29
-
{
30
-
return$this->get('/authorizations');
31
-
}
32
-
33
-
/**
34
-
* Show a single authorization.
35
-
*
36
-
* @param string $clientId
37
-
*
38
-
* @return array
39
-
*
40
-
* @deprecated GitHub will remove this endpoint on 13th November 2020. No replacement will be offered. The "web application flow" should be used instead.
* @deprecated GitHub will remove this endpoint on 13th November 2020. No replacement will be offered. The "web application flow" should be used instead.
* @deprecated GitHub will remove this endpoint on 13th November 2020. No replacement will be offered. The "web application flow" should be used instead.
* @deprecated GitHub will remove this endpoint on 13th November 2020. No replacement will be offered. The "web application flow" should be used instead.
Copy file name to clipboardExpand all lines: lib/Github/Api/Issue/Assignees.php
+3-3
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
namespaceGithub\Api\Issue;
4
4
5
5
useGithub\Api\AbstractApi;
6
+
useGithub\Exception\InvalidArgumentException;
6
7
useGithub\Exception\MissingArgumentException;
7
8
8
9
class Assignees extends AbstractApi
@@ -47,6 +48,7 @@ public function check($username, $repository, $assignee)
47
48
* @param string $issue
48
49
* @param array $parameters
49
50
*
51
+
* @throws InvalidArgumentException
50
52
* @throws MissingArgumentException
51
53
*
52
54
* @return string
@@ -58,9 +60,7 @@ public function add($username, $repository, $issue, array $parameters)
58
60
}
59
61
60
62
if (!is_array($parameters['assignees'])) {
61
-
@trigger_error(sprintf('Passing the "assignees" parameter as a string in "%s" is deprecated and will throw an exception in php-github-api version 3.0. Pass an array of strings instead', __METHOD__), E_USER_DEPRECATED);
@trigger_error(sprintf('Passing integer to the "page" argument in "%s" is deprecated and will throw an exception in php-github-api version 3.0. Pass an array instead.', __METHOD__), E_USER_DEPRECATED);
0 commit comments