We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 843f04f commit ac70da0Copy full SHA for ac70da0
lib/Github/HttpClient/Message/ResponseMediator.php
@@ -65,10 +65,10 @@ public static function getApiLimit(ResponseInterface $response)
65
$remainingCalls = (int) $remainingCallsHeader;
66
67
if (1 > $remainingCalls) {
68
- throw new ApiLimitExceedException((int) $remainingCalls);
+ throw new ApiLimitExceedException($remainingCalls);
69
}
70
71
- return $remainingCalls;
+ return $remainingCallsHeader;
72
73
74
/**
0 commit comments