We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d68d74d commit 12d238bCopy full SHA for 12d238b
src/Forms/Validator.php
@@ -78,7 +78,7 @@ public static function formatMessage(Rule $rule, bool $withValue = true)
78
$caption = $caption instanceof Nette\Utils\IHtmlString
79
? $caption->getText()
80
: ($translator ? $translator->translate($caption) : $caption);
81
- return rtrim($caption, ':');
+ return rtrim((string) $caption, ':');
82
}
83
return '';
84
case 'value': return $withValue ? $rule->control->getValue() : $m[0];
0 commit comments