Skip to content

Commit 2d4fe94

Browse files
committed
Run Rector
1 parent 9939df8 commit 2d4fe94

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

code_samples/pim/availability/src/ProductAvailabilityPurchasableWithoutStockStrategy.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
use Ibexa\ProductCatalog\Local\Persistence\Legacy\ProductAvailability\HandlerInterface;
1010
use Ibexa\ProductCatalog\Local\Repository\Values\Availability;
1111

12-
final class ProductAvailabilityPurchasableWithoutStockStrategy implements ProductAvailabilityStrategyInterface
12+
final readonly class ProductAvailabilityPurchasableWithoutStockStrategy implements ProductAvailabilityStrategyInterface
1313
{
14-
private HandlerInterface $handler;
15-
16-
public function __construct(HandlerInterface $handler)
14+
public function __construct(private HandlerInterface $handler)
1715
{
18-
$this->handler = $handler;
1916
}
2017

2118
public function accept(AvailabilityContextInterface $context): bool

0 commit comments

Comments
 (0)