Skip to content

Commit dfcbb2f

Browse files
committed
[Form] tweaked a deprecation message
1 parent 9b1a0f7 commit dfcbb2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ public function getErrors($deep = false, $flatten = true)
848848
*/
849849
public function getErrorsAsString($level = 0)
850850
{
851-
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);
851+
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);
852852

853853
return self::indent((string) $this->getErrors(true, false), $level);
854854
}

0 commit comments

Comments
 (0)