We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 119fc4e commit 9c1d9cfCopy full SHA for 9c1d9cf
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