Skip to content

Commit 7d09102

Browse files
HP-1751 fixed BillingRegistry::createQuantityFormatter() method
1 parent 9b25ddf commit 7d09102

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/product/BillingRegistry.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use hiqdev\php\billing\product\invoice\InvalidRepresentationException;
77
use hiqdev\php\billing\product\invoice\RepresentationInterface;
88
use hiqdev\php\billing\product\price\PriceTypeDefinition;
9+
use hiqdev\php\billing\product\quantity\QuantityFormatterInterface;
910
use hiqdev\php\billing\product\quantity\QuantityFormatterNotFoundException;
1011
use hiqdev\php\billing\product\quantity\FractionQuantityData;
1112
use hiqdev\php\billing\product\behavior\BehaviorInterface;
@@ -67,7 +68,7 @@ public function getRepresentationsByType(string $representationClass): array
6768
public function createQuantityFormatter(
6869
string $type,
6970
FractionQuantityData $data,
70-
): array {
71+
): QuantityFormatterInterface {
7172
$type = $this->convertStringTypeToType($type);
7273

7374
foreach ($this->priceTypes() as $priceTypeDefinition) {

0 commit comments

Comments
 (0)