Skip to content

Commit

Permalink
[TASK] Use render() in ViewHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
s2b authored Sep 4, 2024
1 parent e017ba9 commit a213d23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ViewHelpers/DecorationViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

class DecorationViewHelper extends AbstractViewHelper
{
public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext): string
public function render(): string
{
return str_repeat('=', strlen($renderChildrenClosure()));
return str_repeat('=', strlen($this->renderChildren()));
}
}

0 comments on commit a213d23

Please sign in to comment.