Skip to content

Commit 0e50171

Browse files
committed
PAC-950 Add compatibility with PHP 8.4
1 parent 9c3495d commit 0e50171

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
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

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)