Skip to content

Commit 42e3522

Browse files
committed
Fix GitHub rate limit response handling in PullModel
1 parent 0ad5ea3 commit 42e3522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

administrator/components/com_patchtester/src/Model/PullModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ private function retrieveGitHubData(GitHub $github, int $id): stdClass
319319
{
320320
try {
321321
$rateResponse = $github->getRateLimit();
322-
$rate = json_decode($rateResponse->body, false);
322+
$rate = json_decode($rateResponse->getBody(), false);
323323
} catch (UnexpectedResponse $exception) {
324324
throw new RuntimeException(
325325
Text::sprintf(

0 commit comments

Comments
 (0)