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/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 +} 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);