-
Notifications
You must be signed in to change notification settings - Fork 52
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
Fix model serialization bug #100
Fix model serialization bug #100
Conversation
@MatanYadaev sorry, forgot to check against phpstan. |
7f99f56
to
e3c8786
Compare
immediately apply casting to geometry objects to prevent errors while trying to json_encode binary data
e3c8786
to
8283e7d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This change breaks the
It looks like the casting is happening twice and the second time via |
Hi @patrickomeara , can you please submit a PR that fixes it? |
we're impacted by this, had to downgrade |
Please provide examples on how to reproduce this. |
@jbajou Are you able to send me a code snippet that fails for you? I will add some failing tests and find a solution. |
Well, to be honest it's quite simple. We have a
Then, in a command (run on AWS SQS, with vapor) we do a
Here is the stack trace (partial):
|
Same stack trace over here. Culprit line: 3.2.0...3.2.1#diff-8fa4ecc9982e0985829510274a951b022588e8be8c90e6fca5cbe23eb7edab8eR27 I don't fully understand the underlying implementation of or rationale behind this change, but obvious fix is updating Guessing the reason this was never encountered before is because Laravel caches casted values by default. Overriding |
Hi @jbajou, your example doesn't appear to reproduce the bug. I'm going to revert the latest changes to |
immediately apply casting to geometry objects to prevent errors while trying to json_encode binary data
fixes #55