FriendsOfSymfony / FOSRestBundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony
http://symfony.com/doc/master/bundles/FOSRestBundle/index.html
MIT License
2.79k stars 708 forks source link

Add alias for serializeFormInterface #2371

Closed Bukashk0zzz closed 1 year ago

Bukashk0zzz commented 2 years ago

Fix issue with Symfony 6.1 and error: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class JMS\Serializer\Handler\FormErrorHandler does not have a method "serializeFormInterfaceTojson"

mbabker commented 1 year ago

I'd actually say the fix belongs in the Serializer package, not here. When schmittjoh/serializer#1362 added support for the interface, it didn't define explicit methods, which would cause it to fall back to JMS\Serializer\Handler\HandlerRegistry::registerSubscribingHandler() creating the default method names that don't exist.

goetas commented 1 year ago

solved in https://github.com/schmittjoh/serializer/pull/1432