Skip to content

Commit

Permalink
Type Error in class AddCspInlineScripts with the Hyva Checkout #237
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Jul 1, 2024
1 parent b7ae104 commit 5295499
Show file tree
Hide file tree
Showing 3 changed files with 10 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]

## [3.9.1] - 1 July 2024
### Fixed
- Type Error in class AddCspInlineScripts with the Hyva Checkout #237

## [3.9.0] - 20 June 2024
### Added
- Added $secureRenderer, so CSP compliance #231 @jemoon @hostep @nige-one
Expand Down
6 changes: 5 additions & 1 deletion Plugin/AddCspInlineScripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ public function __construct(
$this->secureHtmlRendererStub = $secureHtmlRendererStub;
}

public function afterToHtml(Template $block, string $html): string
public function afterToHtml(Template $block, $html): string
{
if (empty($html)) {
return '';
}

if (false === strstr((string)$block->getNameInLayout(), 'yireo_googletagmanager2.')) {
return $html;
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yireo/magento2-googletagmanager2",
"version": "3.9.0",
"version": "3.9.1",
"license": "OSL-3.0",
"type": "magento2-module",
"homepage": "https://www.yireo.com/software/magento-extensions/googletagmanager2",
Expand Down

0 comments on commit 5295499

Please sign in to comment.