From 4b9ef0d1990893efe1f8a2307be407d604f075af Mon Sep 17 00:00:00 2001 From: Victor Svizev Date: Fri, 19 Sep 2025 01:53:04 +0200 Subject: [PATCH 1/2] PAC-950 Add compatibility with PHP 8.4 --- CHANGELOG.md | 8 ++++++++ src/Observers/CleanUpLinkObserver.php | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0854ca6..f33124e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# Version 26.1.0 + +## Features + +### PHP 8.4 Compatibility + +* Add PHP 8.4 support + # Version 26.0.2 ## Bugfixes diff --git a/src/Observers/CleanUpLinkObserver.php b/src/Observers/CleanUpLinkObserver.php index 47cb721..15fdcc7 100644 --- a/src/Observers/CleanUpLinkObserver.php +++ b/src/Observers/CleanUpLinkObserver.php @@ -61,11 +61,11 @@ class CleanUpLinkObserver extends AbstractProductImportObserver implements Obser * * @param \TechDivision\Import\Product\Link\Services\ProductLinkProcessorInterface $productLinkProcessor The * product link processor instance - * @param StateDetectorInterface|null $stateDetector The state detector instance to use + * @param StateDetectorInterface|null $stateDetector The state detector instance to use */ public function __construct( ProductLinkProcessorInterface $productLinkProcessor, - StateDetectorInterface $stateDetector = null + ?StateDetectorInterface $stateDetector = null ) { // pass the state detector to the parent constructor @@ -123,7 +123,7 @@ protected function process() // prepare the links for the found link types and clean-up foreach ($this->linkTypes as $linkTypeCode => $columns) { // shift the column with the header information from the stack - list ($columnNameChildSkus, $callbackChildSkus) = array_shift($columns); + [$columnNameChildSkus, $callbackChildSkus] = array_shift($columns); // query whether or not, we've up sell, cross sell or relation products $links = $this->getValue($columnNameChildSkus, [], $callbackChildSkus); From 30f361e3e730adcb800ed09458a38048622a50f7 Mon Sep 17 00:00:00 2001 From: Victor Svizev Date: Thu, 2 Oct 2025 16:40:36 +0200 Subject: [PATCH 2/2] PAC-950 Update dependencies --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 171ce23..f02ce69 100755 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "license": "MIT", "require": { "php": "^8.1", - "techdivision/import-product": "^26.0.0" + "techdivision/import-product": "^26.2" }, "require-dev": { "doctrine/dbal": "^4.0.4", @@ -40,4 +40,4 @@ ] } } -} \ No newline at end of file +}