Skip to content

Commit

Permalink
fix ===
Browse files Browse the repository at this point in the history
  • Loading branch information
cevro committed Oct 27, 2024
1 parent 524e4c8 commit 841652d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Price/Price.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct(
*/
public function add(Price $price): void
{
if ($this->currency->value !== $price->getCurrency()->value) {
if ($this->currency !== $price->getCurrency()) {
throw new \LogicException('Currencies are not a same');
}
$this->amount += $price->getAmount();
Expand Down

0 comments on commit 841652d

Please sign in to comment.