Fosrestbundle: JMSHandlerRegistry must implements HandlerRegistryInterface correctly

Created on 10 Nov 2018  路  4Comments  路  Source: FriendsOfSymfony/FOSRestBundle

Hello all,

In the latest version of JMS\Serializer the class JMS\Serializer\Handler\HandlerRegistryInterface defines registerSubscribingHandler and registerHandler as void functions thus JMSHandlerRegistry implementation must follow the same definition and not return anything.

public function registerSubscribingHandler(SubscribingHandlerInterface $handler): void;
public function registerHandler(int $direction, string $typeName, string $format, $handler): void;

versus

 /**
 * {@inheritdoc}
 */
public function registerSubscribingHandler(SubscribingHandlerInterface $handler)
{
    return $this->registry->registerSubscribingHandler($handler);
}

/**
 * {@inheritdoc}
 */
public function registerHandler($direction, $typeName, $format, $handler)
{
    return $this->registry->registerHandler($direction, $typeName, $format, $handler);
}

Can anyone fix this?

Thanks for the help.
Timoth茅e

Most helpful comment

@xabbuh Looks like #1961 resolved now. How about release? :wink:

All 4 comments

will be fixed by #1899

Looks like this issue already fixed/merged by #1899. Do you have any plans for creating release?

I think currently #1961 is a blocker for the next release.

@xabbuh Looks like #1961 resolved now. How about release? :wink:

Was this page helpful?
0 / 5 - 0 ratings