FriendsOfSymfony / FOSUserBundle

Provides user management for your Symfony project. Compatible with Doctrine ORM & ODM, and custom storages.
https://symfony.com/doc/master/bundles/FOSUserBundle/index.html
MIT License
3.25k stars 1.57k forks source link

Can't use incorrect type mixed for collection in FOS\UserBundle\Model\User:id #3054

Closed aurelienpiquet closed 1 year ago

aurelienpiquet commented 1 year ago

Hello, i'm having a weird issue with this bundle:

"Can't use incorrect type mixed for collection in FOS\UserBundle\Model\User:id"

php8.2, symfony 5.4.20, friendsofsymfony/user-bundle:dev-master.

I have to change the type of the id from the vendor to string to remove this error.

I didn't have the problem with php8.1

stof commented 1 year ago

Where are you getting this error ?

aurelienpiquet commented 1 year ago

Hey, sorry, didn't expect a fast answer! I have the issue anytime i try to serialize a user, so even on nelmioapidoc

aurelienpiquet commented 1 year ago

Hello, an update from jms_serializer fixed the issue.