Skip to content

Commit 443b471

Browse files
committed
PAC-950 Add compatibility with PHP 8.4
1 parent b5ad6f9 commit 443b471

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

CHANGELOG.md

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

311
## Bugfixes

src/Observers/CleanUpGroupedProductRelationObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class CleanUpGroupedProductRelationObserver extends AbstractProductImportObserve
4242
*/
4343
public function __construct(
4444
ProductGroupedProcessorInterface $productGroupedProcessor,
45-
StateDetectorInterface $stateDetector = null
45+
?StateDetectorInterface $stateDetector = null
4646
) {
4747
// pass the state detector to the parent constructor
4848
parent::__construct($stateDetector);

src/Services/ProductGroupedProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public function persistProductRelation($productRelation, $name = null)
212212
*
213213
* @return void
214214
*/
215-
public function deleteProductRelation(array $row, string $name = null): void
215+
public function deleteProductRelation(array $row, ?string $name = null): void
216216
{
217217
$this->getProductRelationAction()->delete($row, $name);
218218
}

src/Services/ProductGroupedProcessorInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ interface ProductGroupedProcessorInterface extends ProductProcessorInterface, Pr
3232
* Deletes the passed product relation data.
3333
*
3434
* @param array $row The product relation to be deleted
35-
* @param null|string $name The name of the prepared statement that has to be executed
35+
* @param string|null $name The name of the prepared statement that has to be executed
3636
*
3737
* @return void
3838
*/
39-
public function deleteProductRelation(array $row, string $name = null): void;
39+
public function deleteProductRelation(array $row, ?string $name = null): void;
4040
}

0 commit comments

Comments
 (0)