Skip to content

Commit

Permalink
Cast string as return type
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Aug 23, 2024
1 parent ffc8b05 commit 4505b40
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.5.6] - 23 August 2024
### Fixed
- Cast string as return type

## [0.5.5] - 23 August 2024
### Fixed
- Add CSP nonces to inline scripts
Expand Down
2 changes: 1 addition & 1 deletion Plugin/AddCspInlineScripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(
public function afterToHtml(Template $block, $html): string
{
if (false === strstr((string)$block->getNameInLayout(), 'yireo_nextgenimages.')) {
return $html;
return (string) $html;
}

return $this->replaceInlineScripts->replace((string)$html);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "yireo/magento2-next-gen-images",
"license": "OSL-3.0",
"version": "0.5.5",
"version": "0.5.6",
"type": "magento2-module",
"homepage": "https://www.yireo.com/software/magento-extensions/next-gen-images",
"description": "Magento 2 module to add NextGen images support to the Magento frontend",
Expand Down

0 comments on commit 4505b40

Please sign in to comment.