Skip to content

Commit e68728b

Browse files
authored
Merge pull request #32 from techdivision/PAC-950
2 parents 9c3495d + 7dec73c commit e68728b

File tree

6 files changed

+17
-9
lines changed

6 files changed

+17
-9
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# Version 26.1.0
2+
3+
## Features
4+
5+
### PHP 8.4 Compatibility
6+
7+
* Add PHP 8.4 support
8+
19
# Version 26.0.2
210

311
## Bugfixes

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "MIT",
55
"require": {
66
"php": "^8.1",
7-
"techdivision/import-product": "^26.0.0"
7+
"techdivision/import-product": "^26.2"
88
},
99
"require-dev": {
1010
"doctrine/dbal": "^4.0.4",
@@ -40,4 +40,4 @@
4040
]
4141
}
4242
}
43-
}
43+
}

src/Observers/CleanUpVariantProductRelationObserver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ class CleanUpVariantProductRelationObserver extends AbstractProductImportObserve
4646
* Initialize the observer with the passed product variant processor instance.
4747
*
4848
* @param \TechDivision\Import\Product\Variant\Services\ProductVariantProcessorInterface $productVariantProcessor The product variant processor instance
49-
* @param StateDetectorInterface|null $stateDetector The state detector instance to use
49+
* @param StateDetectorInterface|null $stateDetector The state detector instance to use
5050
*/
5151
public function __construct(
5252
ProductVariantProcessorInterface $productVariantProcessor,
53-
StateDetectorInterface $stateDetector = null
53+
?StateDetectorInterface $stateDetector = null
5454
) {
5555

5656
// pass the state detector to the parent constructor

src/Observers/VariantSuperAttributeObserver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ class VariantSuperAttributeObserver extends AbstractProductImportObserver implem
108108
*/
109109
public function __construct(
110110
ProductVariantProcessorInterface $productVariantProcessor,
111-
AttributeLoaderInterface $attributeLoader = null,
112-
Collection $entityMergers = null,
113-
StateDetectorInterface $stateDetector = null
111+
?AttributeLoaderInterface $attributeLoader = null,
112+
?Collection $entityMergers = null,
113+
?StateDetectorInterface $stateDetector = null
114114
) {
115115

116116
// initialize the product variant processor and the attribute loader instance

src/Services/ProductVariantProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ public function deleteProductSuperAttribute(array $row, $name = null)
660660
*
661661
* @return void
662662
*/
663-
public function deleteProductRelation(array $row, string $name = null): void
663+
public function deleteProductRelation(array $row, ?string $name = null): void
664664
{
665665
$this->getProductRelationAction()->delete($row, $name);
666666
}

src/Services/ProductVariantProcessorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,5 +218,5 @@ public function deleteProductSuperAttribute(array $row, $name = null);
218218
*
219219
* @return void
220220
*/
221-
public function deleteProductRelation(array $row, string $name = null): void;
221+
public function deleteProductRelation(array $row, ?string $name = null): void;
222222
}

0 commit comments

Comments
 (0)