yireo / Yireo_GoogleTagManager2

Open Software License 3.0
147 stars 76 forks source link

Type Error in class AddCspInlineScripts with the Hyva Checkout #237

Closed michelheitbrink closed 4 months ago

michelheitbrink commented 4 months ago

In version 3.9.0, an error occurs when selecting a payment method. This happens in combination with Magewire.

TypeError: Yireo\GoogleTagManager2\Plugin\AddCspInlineScripts::afterToHtml(): 
Argument #2 ($html) must be of type string, null given
jissereitsma commented 4 months ago

I've released 3.9.1 to try to fix this. Does this work for you? https://github.com/yireo/Yireo_GoogleTagManager2/commit/52954998c5daa233d13904b056030e19e20b24a1

michelheitbrink commented 4 months ago

Works perfectly

jissereitsma commented 4 months ago

Pfew! :)