Skip to content

Commit 12d238b

Browse files
MartkCzdg
authored andcommitted
strict types (#248)
1 parent d68d74d commit 12d238b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Forms/Validator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static function formatMessage(Rule $rule, bool $withValue = true)
7878
$caption = $caption instanceof Nette\Utils\IHtmlString
7979
? $caption->getText()
8080
: ($translator ? $translator->translate($caption) : $caption);
81-
return rtrim($caption, ':');
81+
return rtrim((string) $caption, ':');
8282
}
8383
return '';
8484
case 'value': return $withValue ? $rule->control->getValue() : $m[0];

0 commit comments

Comments
 (0)