Skip to content

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

Merged
orklah merged 1 commit intovimeo:masterfrom
Ocramius:stubs/better-json-encode-types
Nov 7, 2022
Merged

Making json_encode() always produce a non-empty-string, when successful#8681
orklah merged 1 commit intovimeo:masterfrom
Ocramius:stubs/better-json-encode-types

Conversation

@Ocramius
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

Ocramius commented Nov 7, 2022

@danog done

@orklah
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

orklah commented Nov 7, 2022

Seems working :) Thanks!

@orklah orklah merged commit 4932337 into vimeo:master Nov 7, 2022
@orklah
Copy link
Copy Markdown
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
Copy Markdown
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.

4 participants