From 39bf96bdb89b768d2b1bfed4d8acb6049a1e6567 Mon Sep 17 00:00:00 2001 From: yamlahik Date: Fri, 9 Aug 2024 12:28:05 +0200 Subject: [PATCH] fix php warning --- CHANGELOG.md | 14 +++++++++++++- src/Subjects/EeLinkSubject.php | 4 ++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33af397..6148d36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# Version 28.0.1 + +## Bugfixes + +* fix php warnings + # Version 28.0.0 ## Features @@ -8,6 +14,12 @@ * Add PHP ">=8.1" support * Remove PHP 7.3 support +# Version 27.0.1 + +## Bugfixes + +* fix php warnings + # Version 27.0.0 ## Bugfixes @@ -409,4 +421,4 @@ ## Features -* Initial Release \ No newline at end of file +* Initial Release diff --git a/src/Subjects/EeLinkSubject.php b/src/Subjects/EeLinkSubject.php index e342b62..69f28fb 100644 --- a/src/Subjects/EeLinkSubject.php +++ b/src/Subjects/EeLinkSubject.php @@ -57,8 +57,8 @@ public function setUp($serial) $status = $registryProcessor->getAttribute(RegistryKeys::STATUS); // load the SKU => row/entity ID mapping - $this->skuRowIdMapping = $status[RegistryKeys::SKU_ROW_ID_MAPPING]; - $this->skuEntityIdMapping = $status[RegistryKeys::SKU_ENTITY_ID_MAPPING]; + $this->skuRowIdMapping = $status[RegistryKeys::SKU_ROW_ID_MAPPING] ?? null; + $this->skuEntityIdMapping = $status[RegistryKeys::SKU_ENTITY_ID_MAPPING] ?? null; } /**