Skip to content

Commit 71cfa55

Browse files
committed
Guarantee return type is string
1 parent 8242247 commit 71cfa55

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.14.2] - 23 August 2024
10+
### Fixed
11+
- Guarantee return type is string #170
12+
913
## [0.14.1] - 23 August 2024
1014
### Fixed
1115
- Add CSP nonces to inline scripts

Plugin/AddCspInlineScripts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function __construct(
1818
public function afterToHtml(Template $block, $html): string
1919
{
2020
if (false === strstr((string)$block->getNameInLayout(), 'yireo_webp2.')) {
21-
return $html;
21+
return (string)$html;
2222
}
2323

2424
return $this->replaceInlineScripts->replace((string)$html);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "yireo/magento2-webp2",
33
"license": "OSL-3.0",
4-
"version": "0.14.1",
4+
"version": "0.14.2",
55
"type": "magento2-module",
66
"homepage": "https://www.yireo.com/software/magento-extensions/webp2",
77
"description": "Magento 2 module to add WebP support to the Magento frontend",

0 commit comments

Comments
 (0)