-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
[3.9.0] InvalidArgumentException Can't use incorrect type #844
Comments
We @sulu are running into the same issue, that now types are read from the DocBlocks which we really want to avoid, as they are definitly not be written to be used by the serializer. I think this is related to #824 and the Example 1: /**
* @var string|bool|array
* @Groups({"frontend"})
*/
private $value; Ends with:
Example 2 (Doctrine) /**
* The entity that owns this collection.
*
* @var object
*/
private $owner; Ends with:
|
FWIW, I ran into this issue with a typed array doc block: /**
* @var array<array{min: string, max: string|null, increment: string}>
*
* @ORM\Column(type="json")
*/
public array $bidding_table = []; |
Same problem... The solution could be add object as primitive type?
|
Hi,
After upgrade jms/serializer-bundle from 3.8.0 to 3.9.0 I'm getting exception:
The text was updated successfully, but these errors were encountered: