Skip to content

Commit ac70da0

Browse files
committed
Improve apilimit method
1 parent 843f04f commit ac70da0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Github/HttpClient/Message/ResponseMediator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ public static function getApiLimit(ResponseInterface $response)
6565
$remainingCalls = (int) $remainingCallsHeader;
6666

6767
if (1 > $remainingCalls) {
68-
throw new ApiLimitExceedException((int) $remainingCalls);
68+
throw new ApiLimitExceedException($remainingCalls);
6969
}
7070

71-
return $remainingCalls;
71+
return $remainingCallsHeader;
7272
}
7373

7474
/**

0 commit comments

Comments
 (0)