From a396b416bdeafbafd0cee4a3ad870c23c4a3fef5 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 8 Jan 2015 09:08:17 +0100 Subject: [PATCH] [Form] tweaked a deprecation message --- src/Symfony/Component/Form/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Form/Form.php b/src/Symfony/Component/Form/Form.php index 99d25c2ef0..9f078aa11a 100644 --- a/src/Symfony/Component/Form/Form.php +++ b/src/Symfony/Component/Form/Form.php @@ -848,7 +848,7 @@ class Form implements \IteratorAggregate, FormInterface */ public function getErrorsAsString($level = 0) { - trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use the Form::getErrors(true, false) method instead and cast the result to a string.', E_USER_DEPRECATED); + trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use (string) Form::getErrors(true, false) instead.', E_USER_DEPRECATED); return self::indent((string) $this->getErrors(true, false), $level); }