FOSRestBundle icon indicating copy to clipboard operation
FOSRestBundle copied to clipboard

Add alias for serializeFormInterface

Open Bukashk0zzz opened this issue 3 years ago • 1 comments

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"

Bukashk0zzz avatar Jun 03 '22 07:06 Bukashk0zzz

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.

mbabker avatar Aug 09 '22 14:08 mbabker

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

goetas avatar Sep 12 '22 08:09 goetas