Skip to content

Commit 11f4172

Browse files
Copilotwilr
andauthored
Fix trigger_error invalid error type in ShoppingCart::setCurrent() (#862)
* Initial plan * Fix trigger_error invalid error type E_ERROR -> E_USER_ERROR in ShoppingCart::setCurrent() Agent-Logs-Url: https://github.com/silvershop/silvershop-core/sessions/4fb1cab4-e6dd-46ed-ad89-c193581d9f95 Co-authored-by: wilr <101629+wilr@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: wilr <101629+wilr@users.noreply.github.com>
1 parent ce7c8d6 commit 11f4172

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Cart/ShoppingCart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function current(): ?Order
8585
public function setCurrent(Order $order): static
8686
{
8787
if (!$order->IsCart()) {
88-
trigger_error('Passed Order object is not cart status', E_ERROR);
88+
trigger_error('Passed Order object is not cart status', E_USER_ERROR);
8989
}
9090

9191
$this->order = $order;

0 commit comments

Comments
 (0)