Skip to content

Commit

Permalink
do not depend on the generic serialization visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed Apr 21, 2017
1 parent 590a561 commit b4fcdc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/JMS/Serializer/Handler/FormErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use JMS\Serializer\YamlSerializationVisitor;
use JMS\Serializer\JsonSerializationVisitor;
use JMS\Serializer\GraphNavigator;
use JMS\Serializer\GenericSerializationVisitor;
use JMS\Serializer\VisitorInterface;
use Symfony\Component\Form\Form;
use Symfony\Component\Form\FormError;
use Symfony\Component\Translation\TranslatorInterface;
Expand Down Expand Up @@ -125,7 +125,7 @@ private function getErrorMessage(FormError $error)
return $this->translator->trans($error->getMessageTemplate(), $error->getMessageParameters(), 'validators');
}

private function convertFormToArray(GenericSerializationVisitor $visitor, Form $data)
private function convertFormToArray(VisitorInterface $visitor, Form $data)
{
$isRoot = null === $visitor->getRoot();

Expand Down

0 comments on commit b4fcdc4

Please sign in to comment.