-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Object could not be converted to string after upgrade to 2.6.0 #7025
Labels
Comments
@pepakriz discriminators didn't support |
Maybe not officially, but it works on my code (version 2.5.14) without __toString :) |
In a reproducible way? Can you compare your code to the one in #6141 and see if there are any major differences? |
@Ocramius I think this issue can be closed, because there has not been any feedback. |
Closing here due to inactivity, we can reopen once we have a way to reproduce it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
After upgrade to 2.6.0 I got
Object could not be converted to string after upgrade to 2.6.0
.Mybe because this PR: #6141 . Now custom types must implement
__toString
method when they are used as discriminators. Is this behaviour correct?The text was updated successfully, but these errors were encountered: