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

[5.3] Model::toJson() silently fails on error #16159

Closed
wants to merge 1 commit into from

Conversation

sylwit
Copy link
Contributor

@sylwit sylwit commented Oct 29, 2016

I had not UTF-8 chars into a legacy database and this method was silently failing.
I think it's a good improvement to throw an InvalidArgumentException

I had not UTF-8 chars into a legacy database and this method was silently failing.
I think it's a good impovement to throw an InvalidArgumentException
@GrahamCampbell GrahamCampbell changed the title Model::toJson() silently fails on error [5.3] Model::toJson() silently fails on error Oct 29, 2016
@GrahamCampbell
Copy link
Member

Maybe this should go to 5.4 rather than 5.3?

@sylwit
Copy link
Contributor Author

sylwit commented Oct 29, 2016

ok for 5.4

@sylwit sylwit closed this Oct 29, 2016
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