diff --git a/src/Traits/CartPay.php b/src/Traits/CartPay.php index 3bf386329..aa4d0f089 100644 --- a/src/Traits/CartPay.php +++ b/src/Traits/CartPay.php @@ -361,7 +361,9 @@ public function refundCart(CartInterface $cart, bool $force = false, bool $gifts // Check if the count of transfers is equal to the total items in the basket. if (count($transfers) !== $basketDto->total()) { throw new ModelNotFoundException( - "No query results for model [{$this->transfers()->getModel()->getMorphClass()}]", + "No query results for model [{$this->transfers() + ->getModel() + ->getMorphClass()}]", ExceptionInterface::MODEL_NOT_FOUND ); }