Skip to content

Commit 02199ab

Browse files
authored
Remove type hint for CartItem quantity to allow float values (#254)
1 parent 6292277 commit 02199ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ValueObject/CartItem.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ public function addTaxRate(float $taxRate): CartItem
122122
}
123123

124124
/**
125-
* @param int $quantity
125+
* @param $quantity
126126
* @return CartItem
127127
*/
128-
public function addQuantity(int $quantity): CartItem
128+
public function addQuantity($quantity): CartItem
129129
{
130130
$this->quantity = $quantity;
131131
return $this;

0 commit comments

Comments
 (0)