From ff211e9f2d0052b3efce5ea23f2cf425ece5681f Mon Sep 17 00:00:00 2001 From: Leny BERNARD Date: Mon, 8 Jan 2018 22:36:15 +0100 Subject: [PATCH] do not use validateValue function which is deprecated since 2.7 --- Controller/FormController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/FormController.php b/Controller/FormController.php index ea40254..7be716c 100644 --- a/Controller/FormController.php +++ b/Controller/FormController.php @@ -132,7 +132,7 @@ public function addFormAnswerAction(Request $request) } } if ($widget->isAutoAnswer() === true && $email) { - if ($errors = $this->get('validator')->validateValue($widget->getNoReply(), new EmailConstraint())) { + if ($errors = $this->get('validator')->validate($widget->getNoReply(), new EmailConstraint())) { try { $urlizer = new Urlizer(); $body = $widget->getMessage();