Update composer dependencies

This commit is contained in:
Chris
2019-06-11 12:29:32 +01:00
parent 7d6df3843b
commit 1f608b1c21
1835 changed files with 74500 additions and 27482 deletions

View File

@@ -120,10 +120,10 @@ class Labels extends AbstractApi
*
* @link https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue
*
* @param string $username
* @param string $repository
* @param int $issue
* @param string $labels
* @param string $username
* @param string $repository
* @param int $issue
* @param string|array $labels
*
* @return array
*
@@ -134,7 +134,7 @@ class Labels extends AbstractApi
if (is_string($labels)) {
$labels = [$labels];
} elseif (0 === count($labels)) {
throw new InvalidArgumentException();
throw new InvalidArgumentException('The labels parameter should be a single label or an array of labels');
}
return $this->post('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/issues/'.rawurlencode($issue).'/labels', $labels);
@@ -167,7 +167,7 @@ class Labels extends AbstractApi
* @param string $issue
* @param string $label
*
* @return null
* @return array|string
*/
public function remove($username, $repository, $issue, $label)
{
@@ -183,7 +183,7 @@ class Labels extends AbstractApi
* @param string $repository
* @param string $issue
*
* @return null
* @return array|string
*/
public function clear($username, $repository, $issue)
{