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 3934f51 commit 2b3f086Copy full SHA for 2b3f086
src/ViewHelpers/DecorationViewHelper.php
@@ -16,7 +16,7 @@ class DecorationViewHelper extends AbstractViewHelper
16
public function render(): string
17
{
18
$children = $this->renderChildren();
19
- if (!is_scalar($children) || !$children instanceof \Stringable) {
+ if (!is_scalar($children) && !$children instanceof \Stringable) {
20
throw new \InvalidArgumentException('DecorationViewHelper only works on string input');
21
}
22
return str_repeat('=', strlen((string)$children));
0 commit comments