Skip to content

Conversation

@LadySolveig
Copy link

Pull Request for Issue # .

Summary of Changes

Fix for fetching Github API data after Joomla Framework update.

Ref:
joomla/joomla-cms#45825
joomla/joomla-cms#45827

Testing Instructions

@LadySolveig LadySolveig marked this pull request as ready for review August 15, 2025 07:51
if ($response->getStatusCode() != $expectedCode) {
// Decode the error response and throw an exception.
$body = json_decode($response->body);
$body = json_decode((string) $response->getBody(), true);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$body = json_decode((string) $response->getBody(), true);
$body = json_decode((string) $response->getBody());

try {
$rateResponse = Helper::initializeGithub()->getRateLimit();
$rate = json_decode($rateResponse->body);
$rate = json_decode($rateResponse->getBody());
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$rate = json_decode($rateResponse->getBody());
$rate = json_decode((string) $rateResponse->getBody());

try {
$rateResponse = $github->getRateLimit();
$rate = json_decode($rateResponse->body, false);
$rate = json_decode($rateResponse->getBody(), false);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$rate = json_decode($rateResponse->getBody(), false);
$rate = json_decode((string) $rateResponse->getBody(), false);

$id
);
$pull = json_decode($pullResponse->body, false);
$pull = json_decode($pullResponse->getBody(), false);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$pull = json_decode($pullResponse->getBody(), false);
$pull = json_decode((string) $pullResponse->getBody(), false);

);
$contents = json_decode(
$contentsResponse->body,
$contentsResponse->getBody(),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$contentsResponse->getBody(),
(string) $contentsResponse->getBody(),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants