From 6c7f387038740e93c19c8025c722fdbb6587c86a Mon Sep 17 00:00:00 2001 From: Lubos Hubacek Date: Thu, 13 Apr 2023 14:34:12 +0200 Subject: [PATCH 1/2] Revert symfony console to compatible version with 2.4.5 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 1b284c75..75d7bc07 100644 --- a/composer.json +++ b/composer.json @@ -1,9 +1,9 @@ { "name": "magento/data-migration-tool", "description": "Migration Tool", - "version": "2.4.5", + "version": "2.4.51", "require": { - "symfony/console": "^5.4", + "symfony/console": "~4.4.0", "magento/framework": "*", "monolog/monolog": "^2.3" }, From 825a36deb6edf7b0f5a59f479f60834c882420e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Hub=C3=A1=C4=8Dek?= Date: Thu, 13 Apr 2023 11:44:59 +0200 Subject: [PATCH 2/2] E_DEPRECATED --- src/Migration/Handler/TruncateSuffix.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Migration/Handler/TruncateSuffix.php b/src/Migration/Handler/TruncateSuffix.php index 0d9b8c40..54b5617f 100644 --- a/src/Migration/Handler/TruncateSuffix.php +++ b/src/Migration/Handler/TruncateSuffix.php @@ -90,7 +90,13 @@ public function handle(Record $recordToHandle, Record $oppositeRecord) if (in_array($recordToHandle->getValue('attribute_id'), $attributeIds)) { $suffix = '~' . preg_quote($this->getSuffix()) . '$~'; $value = $recordToHandle->getValue($this->field); - $value = preg_replace($suffix, '', $value); + + // custom edit start + if ($value !== null) { + $value = preg_replace($suffix, '', $value); + } + // custom edit end + $recordToHandle->setValue($this->field, $value); } }