Skip to content

Commit

Permalink
strict types (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartkCz authored Jun 5, 2020
1 parent 119fc4e commit 9c1d9cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static function formatMessage(Rule $rule, bool $withValue = true)
$caption = $caption instanceof Nette\Utils\IHtmlString
? $caption->getText()
: ($translator ? $translator->translate($caption) : $caption);
return rtrim($caption, ':');
return rtrim((string) $caption, ':');
}
return '';
case 'value': return $withValue ? $rule->control->getValue() : $m[0];
Expand Down

0 comments on commit 9c1d9cf

Please sign in to comment.