From b4fcdc48d6dc2ba7fa17924abe374a77c806b787 Mon Sep 17 00:00:00 2001 From: Asmir Mustafic Date: Mon, 13 Mar 2017 15:36:47 +0100 Subject: [PATCH] do not depend on the generic serialization visitor --- src/JMS/Serializer/Handler/FormErrorHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/JMS/Serializer/Handler/FormErrorHandler.php b/src/JMS/Serializer/Handler/FormErrorHandler.php index 5bed457d3..6847d503e 100644 --- a/src/JMS/Serializer/Handler/FormErrorHandler.php +++ b/src/JMS/Serializer/Handler/FormErrorHandler.php @@ -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; @@ -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();