serialize
should not be mandatory when defining a custom formatter
#4293
Labels
serialize
should not be mandatory when defining a custom formatter
#4293
Which package?
cli-lib
Describe the bug
The current Formatter interface requires to define a custom serialize function.
But the current code is already checking if
serialize
is a function, otherwise it applies the default serialization:Expected behavior
To apply the default serialization, the formatter interface should be:
The text was updated successfully, but these errors were encountered: