-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
AbstractVisitor::getElementType() must be of the type array or null, string returned #1027
Comments
can you post please the stack trace? |
@goetas Then I've added AbstractVisitor at line 39: if (isset($typeArray['params'][0]) && !\is_array($typeArray['params'][0])) {
dd(debug_print_backtrace(30));
}
|
Basically I just validate if the element isn't array return null, it looks like is working fine |
Something is wrong with your type. You have:
but should be
Are you using some custom handler where you define the type manually? |
Not, there isn't any custom handler |
I'm getting the follow message Return value of JMS\Serializer\AbstractVisitor::getElementType() must be of the type array or null, string returned when I'm trying to serialize an object.
Steps required to reproduce the problem
Expected Result
Actual Result
Message: Return value of JMS\Serializer\AbstractVisitor::getElementType() must be of the type array or null, string returned
The text was updated successfully, but these errors were encountered: