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

ApiClient::deserialize has an unhandled DateTime Exception #33

Open
cpiggott opened this issue Feb 27, 2019 · 0 comments
Open

ApiClient::deserialize has an unhandled DateTime Exception #33

cpiggott opened this issue Feb 27, 2019 · 0 comments

Comments

@cpiggott
Copy link
Contributor

In the ApiClient::deserialize the new \DateTime($data); can potentially throw an exception, but it’s not caught in code.

It’s also not documented in the PHPDoc that it could throw an exception, so it’s not caught anywhere throughout the code-base.

What is your protocol here? Catch the exception and give some other date(Doesn't seem like a great idea to me...) or allow the exception be thrown?

ApiClient::L443

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

No branches or pull requests

1 participant