[Form] tweaked a deprecation message

This commit is contained in:
Fabien Potencier 2015-01-08 09:08:17 +01:00
parent ef7600fc84
commit a396b416bd

View File

@ -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);
}