Skip to content

Commit 382ae06

Browse files
Fix bug with null (#321)
Co-authored-by: Oleksandr Miroshnichenko <[email protected]>
1 parent 34e646c commit 382ae06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Meta/Conversion/Helper/MagentoDataHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,12 @@ public function getCartNumItems(CartInterface $quote): int
236236
/**
237237
* Get Hash value
238238
*
239-
* @param string $string
239+
* @param string|null $string
240240
* @return string
241241
*/
242242
public function hashValue($string): string
243243
{
244-
return hash('sha256', strtolower($string));
244+
return hash('sha256', strtolower($string ?? ''));
245245
}
246246

247247
// TODO Remaining user/custom data methods that can be obtained using Magento.

0 commit comments

Comments
 (0)