Skip to content

Commit

Permalink
Fixed setting price in OrderItem
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMystikJonas authored and pionl committed Jul 4, 2023
1 parent 6b74c74 commit 5aa6d79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "9.5",
"phpunit/phpunit": "9.6",
"vlucas/phpdotenv": "^2.4",
"phpstan/phpstan": "^1.10.14",
"phpstan/phpstan-deprecation-rules": "^1.0.0",
Expand Down
1 change: 0 additions & 1 deletion src/Models/OrderItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public function __construct($id, string $name, int $quantity, Price $price, stri
$this->setQuantity($quantity);
$this->setPrice($price);
$this->setUrl($url);
$this->price = new Price(0, 0);
$this->attributes = new Attributes();
}

Expand Down

0 comments on commit 5aa6d79

Please sign in to comment.