Skip to content

Instantly share code, notes, and snippets.

View Ig0r-M-magic42's full-sized avatar
🔬
Meditating

Igor Ig0r-M-magic42

🔬
Meditating
View GitHub Profile
diff --git a/src/FacebookAds/Object/ServerSide/AdsPixelSettings.php b/src/FacebookAds/Object/ServerSide/AdsPixelSettings.php
index f995a18..21015e5 100644
--- a/src/FacebookAds/Object/ServerSide/AdsPixelSettings.php
+++ b/src/FacebookAds/Object/ServerSide/AdsPixelSettings.php
@@ -151,7 +151,7 @@ class AdsPixelSettings implements ArrayAccess {
* @param integer $offset Offset
* @return boolean
*/
- public function offsetExists($offset) {
+ public function offsetExists($offset): bool {
diff --git a/Helper/MagentoDataHelper.php b/Helper/MagentoDataHelper.php
index 992edc3..b2d94fa 100644
--- a/Helper/MagentoDataHelper.php
+++ b/Helper/MagentoDataHelper.php
@@ -478,7 +478,7 @@ class MagentoDataHelper extends AbstractHelper
}
private function hashValue($string){
- return hash('sha256', strtolower($string));
+ return hash('sha256', strtolower($string ?? ''));