File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/Github/HttpClient/Message Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public static function getContent(Response $response)
21
21
22
22
public static function getPagination (Response $ response )
23
23
{
24
- $ header = $ response ->getHeader ('Link ' );
24
+ $ header = ( string ) $ response ->getHeader ('Link ' );
25
25
26
26
if (empty ($ header )) {
27
27
return null ;
@@ -41,7 +41,7 @@ public static function getPagination(Response $response)
41
41
42
42
public static function getApiLimit (Response $ response )
43
43
{
44
- $ remainingCalls = $ response ->getHeader ('X-RateLimit-Remaining ' );
44
+ $ remainingCalls = ( string ) $ response ->getHeader ('X-RateLimit-Remaining ' );
45
45
46
46
if (null !== $ remainingCalls && 1 > $ remainingCalls ) {
47
47
throw new ApiLimitExceedException ($ remainingCalls );
You can’t perform that action at this time.
0 commit comments