Skip to content

Commit

Permalink
[TASK] Make phpstan happy
Browse files Browse the repository at this point in the history
  • Loading branch information
s2b committed Sep 4, 2024
1 parent 05a2ed7 commit dbf1cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ViewHelpers/DecorationViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ class DecorationViewHelper extends AbstractViewHelper
{
public function render(): string
{
return str_repeat('=', strlen($this->renderChildren()));
return str_repeat('=', strlen((string)$this->renderChildren()));

Check failure on line 18 in src/ViewHelpers/DecorationViewHelper.php

View workflow job for this annotation

GitHub Actions / build (8.2)

Cannot cast mixed to string.

Check failure on line 18 in src/ViewHelpers/DecorationViewHelper.php

View workflow job for this annotation

GitHub Actions / build (8.3)

Cannot cast mixed to string.
}
}

0 comments on commit dbf1cea

Please sign in to comment.