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

json_decode fixes #465

Closed
wants to merge 1 commit into from
Closed

json_decode fixes #465

wants to merge 1 commit into from

Conversation

shish
Copy link
Collaborator

@shish shish commented Nov 28, 2024

(Breaking the diff against shish/safe into smaller parts for easier reviewing)

(Breaking the diff against shish/safe into smaller parts for easier reviewing)
@@ -33,10 +33,10 @@
* @throws JsonException if the JSON cannot be decoded.
* @link http://www.php.net/manual/en/function.json-decode.php
*/
function json_decode(string $json, bool $assoc = false, int $depth = 512, int $flags = 0): mixed
function json_decode(string $json, bool $associative = false, int $depth = 512, int $flags = 0): mixed
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should not rename the parameter, because of named arguments and php-src uses the name $assoc

@staabm
Copy link
Collaborator

staabm commented Nov 28, 2024

I will just merge https://github.com/thecodingmachine/safe/pull/451/files which is what I would expect.

thank you

@staabm staabm closed this Nov 28, 2024
@staabm
Copy link
Collaborator

staabm commented Nov 28, 2024

just found faf662c, which tells me I was wrong as the param named changed in php-src.

will cherry pick in #473

@shish shish deleted the pr465 branch December 2, 2024 19:25
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