schmittjoh / serializer

Library for (de-)serializing data of any complexity (supports JSON, and XML)
http://jmsyst.com/libs/serializer
MIT License
2.32k stars 588 forks source link

Define method for the `FormInterface` type in the `FormErrorHandler` #1432

Closed Spea closed 2 years ago

Spea commented 2 years ago
Q A
Bug fix? yes
New feature? no
Doc updated no
BC breaks? no
Deprecations? no
Tests pass? yes
License MIT

The HandlerRegistry tries to determine the method based on the type and format. When the type is a FormInterface, the resulting method would be serializeFormInterfaceToJson, but as this method currently does not exist in the FormErrorHandler an error is thrown.

Adding a proper method definition to the subscribing methods for the FormInterface type resolves this issue.

goetas commented 2 years ago

thanks