Skip to content

Commit 35dc16b

Browse files
committed
PAC-950 Add compatibility with PHP 8.4
1 parent c6cd221 commit 35dc16b

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

CHANGELOG.md

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

311
## Features

src/Observers/ProductUrlRewriteObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class ProductUrlRewriteObserver extends AbstractProductImportObserver
7070
*/
7171
public function __construct(
7272
ProductUrlRewriteProcessorInterface $productUrlRewriteProcessor,
73-
StateDetectorInterface $stateDetector = null
73+
?StateDetectorInterface $stateDetector = null
7474
) {
7575
$this->productUrlRewriteProcessor = $productUrlRewriteProcessor;
7676
parent::__construct($stateDetector);

src/Observers/UrlRewriteObserver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ class UrlRewriteObserver extends AbstractProductImportObserver implements Observ
112112
* Initialize the observer with the passed product URL rewrite processor instance.
113113
*
114114
* @param \TechDivision\Import\Product\UrlRewrite\Services\ProductUrlRewriteProcessorInterface $productUrlRewriteProcessor The product URL rewrite processor instance
115-
* @param \TechDivision\Import\Observers\StateDetectorInterface $stateDetector The state detector instance
115+
* @param \TechDivision\Import\Observers\StateDetectorInterface|null $stateDetector The state detector instance
116116
*/
117117
public function __construct(
118118
ProductUrlRewriteProcessorInterface $productUrlRewriteProcessor,
119-
StateDetectorInterface $stateDetector = null
119+
?StateDetectorInterface $stateDetector = null
120120
) {
121121
$this->productUrlRewriteProcessor = $productUrlRewriteProcessor;
122122

0 commit comments

Comments
 (0)