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

Making json_encode() always produce a non-empty-string, when successful #8681

Merged
merged 1 commit into from Nov 7, 2022

Conversation

Ocramius
Copy link
Contributor

@Ocramius Ocramius commented Nov 7, 2022

json_encode() never produces '' as a value: that would be invalid JSON anyway

@weirdan weirdan added the release:fix The PR will be included in 'Fixes' section of the release notes label Nov 7, 2022
@danog
Copy link
Collaborator

danog commented Nov 7, 2022

Would you please target this against master, we'll be releasing 5 in the coming days anyway :)

@Ocramius
Copy link
Contributor Author

Ocramius commented Nov 7, 2022

Sure thing: I targeted 4.x because I thought it would still apply 😁

@Ocramius Ocramius force-pushed the stubs/better-json-encode-types branch from 096a86c to 2fd7a1a Compare November 7, 2022 19:18
@Ocramius Ocramius changed the base branch from 4.x to master November 7, 2022 19:18
@Ocramius
Copy link
Contributor Author

Ocramius commented Nov 7, 2022

@danog done

@orklah
Copy link
Collaborator

orklah commented Nov 7, 2022

I don't get how the CI go bonkers everytime there's a switch like that... Sorry Marco, could you do a rebase on master to relaunch the CI please?

@Ocramius
Copy link
Contributor Author

Ocramius commented Nov 7, 2022

It's already rebased :|

Lemme add some gibberish to the patch, like whitespace to the commit.

…essful

`json_encode()` never produces `''` as a value: that would be invalid JSON anyway
@Ocramius Ocramius force-pushed the stubs/better-json-encode-types branch from 2fd7a1a to 5e9b921 Compare November 7, 2022 19:43
@orklah
Copy link
Collaborator

orklah commented Nov 7, 2022

Seems working :) Thanks!

@orklah orklah merged commit 4932337 into vimeo:master Nov 7, 2022
@orklah
Copy link
Collaborator

orklah commented Nov 7, 2022

Thanks!

@Ocramius Ocramius deleted the stubs/better-json-encode-types branch November 7, 2022 19:55
@Ocramius
Copy link
Contributor Author

Ocramius commented Nov 7, 2022

Thank you for merging so quickly! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix The PR will be included in 'Fixes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants