Skip to content

Commit

Permalink
Merge pull request #103 from LeoniePhiline/fix/102
Browse files Browse the repository at this point in the history
fix: Coerce `sizes` viewhelper argument to string (fixes #102)
  • Loading branch information
s2b authored May 10, 2023
2 parents 04cc0f9 + e381efb commit d367d24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/ImageViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function render(): string
$this->arguments['srcset'],
$cropArea,
$focusArea,
$this->arguments['sizes'],
(string) $this->arguments['sizes'],
$this->tag,
$this->arguments['absolute'],
$this->arguments['lazyload'],
Expand Down
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/MediaViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ protected function renderImageSrcset(FileInterface $image, $width, $height, ?str
$this->arguments['srcset'],
$cropArea,
$focusArea,
$this->arguments['sizes'],
(string) $this->arguments['sizes'],
$this->tag,
false,
$this->arguments['lazyload'],
Expand Down

0 comments on commit d367d24

Please sign in to comment.