-
Notifications
You must be signed in to change notification settings - Fork 138
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
Add type hint to prevent error #214
base: master
Are you sure you want to change the base?
Conversation
This did not fix the issue for me. I traced the ErrorException to the presence of If it helps, here's more info: With carbon 2 installed, the $diff object near where the error is thrown is
With Carbon 3 installed, it's
Not only is it a different kind of object, but the latter version has |
I can confirm this happens with Carbon objects. Casting them to DateTime with |
Fixes #213