Skip to content

Commit

Permalink
do not use validateValue function which is deprecated since 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
lenybernard authored Jan 8, 2018
1 parent ca7a314 commit ff211e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/FormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ff211e9

Please sign in to comment.