Skip to content

Commit 413f729

Browse files
HP-1751 tiny
1 parent 6808daf commit 413f729

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: src/product/price/PriceTypeDefinition.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ class PriceTypeDefinition implements ParentNodeDefinitionInterface
3434
private AggregateInterface $aggregate;
3535

3636
public function __construct(
37-
private readonly PriceTypeDefinitionCollection $parent,
37+
/**
38+
* @psalm-var T
39+
*/
40+
private readonly PriceTypeDefinitionCollectionInterface $parent,
3841
private readonly TypeInterface $type,
3942
TariffTypeInterface $tariffType,
4043
) {

Diff for: src/product/price/PriceTypeDefinitionFactoryInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
interface PriceTypeDefinitionFactoryInterface
99
{
1010
public function create(
11-
PriceTypeDefinitionCollection $parent,
11+
PriceTypeDefinitionCollectionInterface $parent,
1212
TypeInterface $type,
1313
TariffTypeInterface $tariffType,
1414
): PriceTypeDefinition;

0 commit comments

Comments
 (0)