Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix json_decode type error #55

Merged
merged 1 commit into from
Nov 2, 2024
Merged

Conversation

mkeremcansev
Copy link
Contributor

Purpose: This PR addresses an issue with the json_decode() function.

Issue: During runtime, the json_decode() function was receiving an array type input instead of the expected string type for JSON data. This led to the following error message:

json_decode(): Argument #1 ($json) must be of type string, array given

Solution: The first argument of the json_decode() function has been updated to ensure it receives a valid string type JSON input. As a result, the error message has been resolved, and the associated functionality now operates correctly.

Changes:

Corrected the erroneous json_decode() call.

Note: The changes made do not affect existing functionality and have been verified to provide the expected output. The solution is included in commit 28f785e.

@joaopaulolndev joaopaulolndev merged commit 013b291 into joaopaulolndev:main Nov 2, 2024
9 checks passed
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