Fix GitHub API response handling after Framework Update#379
Closed
LadySolveig wants to merge 5 commits intojoomla-extensions:masterfrom
Closed
Fix GitHub API response handling after Framework Update#379LadySolveig wants to merge 5 commits intojoomla-extensions:masterfrom
LadySolveig wants to merge 5 commits intojoomla-extensions:masterfrom
Conversation
Hackwar
requested changes
Aug 15, 2025
| if ($response->getStatusCode() != $expectedCode) { | ||
| // Decode the error response and throw an exception. | ||
| $body = json_decode($response->body); | ||
| $body = json_decode((string) $response->getBody(), true); |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Suggested change
| $pull = json_decode($pullResponse->getBody(), false); | |
| $pull = json_decode((string) $pullResponse->getBody(), false); |
| ); | ||
| $contents = json_decode( | ||
| $contentsResponse->body, | ||
| $contentsResponse->getBody(), |
There was a problem hiding this comment.
Suggested change
| $contentsResponse->getBody(), | |
| (string) $contentsResponse->getBody(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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