Skip to content

Commit bf32ddd

Browse files
committed
Set correct property and return types
1 parent e54725e commit bf32ddd

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

lib/Github/Api/Issue/Labels.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function replace($username, $repository, $issue, array $params)
167167
* @param string $issue
168168
* @param string $label
169169
*
170-
* @return null
170+
* @return array|string
171171
*/
172172
public function remove($username, $repository, $issue, $label)
173173
{
@@ -183,7 +183,7 @@ public function remove($username, $repository, $issue, $label)
183183
* @param string $repository
184184
* @param string $issue
185185
*
186-
* @return null
186+
* @return array|string
187187
*/
188188
public function clear($username, $repository, $issue)
189189
{

lib/Github/Api/Issue/Milestones.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function update($username, $repository, $id, array $params)
114114
* @param string $repository
115115
* @param int $id
116116
*
117-
* @return null
117+
* @return array|string
118118
*/
119119
public function remove($username, $repository, $id)
120120
{

lib/Github/Api/Organization/Hooks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function update($organization, $id, array $params)
8787
* @param string $organization
8888
* @param int $id
8989
*
90-
* @return null
90+
* @return array|string
9191
*/
9292
public function ping($organization, $id)
9393
{
@@ -102,7 +102,7 @@ public function ping($organization, $id)
102102
* @param string $organization
103103
* @param int $id
104104
*
105-
* @return null
105+
* @return array|string
106106
*/
107107
public function remove($organization, $id)
108108
{

lib/Github/HttpClient/Builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Builder
3838
private $pluginClient;
3939

4040
/**
41-
* @var MessageFactory
41+
* @var RequestFactory
4242
*/
4343
private $requestFactory;
4444

@@ -62,7 +62,7 @@ class Builder
6262
/**
6363
* This plugin is special treated because it has to be the very last plugin.
6464
*
65-
* @var Plugin\CachePlugin
65+
* @var Plugin\CachePlugin|null
6666
*/
6767
private $cachePlugin;
6868

lib/Github/HttpClient/Message/ResponseMediator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static function getContent(ResponseInterface $response)
3333
public static function getPagination(ResponseInterface $response)
3434
{
3535
if (!$response->hasHeader('Link')) {
36-
return;
36+
return null;
3737
}
3838

3939
$header = self::getHeader($response, 'Link');

0 commit comments

Comments
 (0)