Skip to content

Commit 2b3f086

Browse files
committed
[TASK] And now for the last time: Make phpstan happy
1 parent 3934f51 commit 2b3f086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ViewHelpers/DecorationViewHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class DecorationViewHelper extends AbstractViewHelper
1616
public function render(): string
1717
{
1818
$children = $this->renderChildren();
19-
if (!is_scalar($children) || !$children instanceof \Stringable) {
19+
if (!is_scalar($children) && !$children instanceof \Stringable) {
2020
throw new \InvalidArgumentException('DecorationViewHelper only works on string input');
2121
}
2222
return str_repeat('=', strlen((string)$children));

0 commit comments

Comments
 (0)