From 5d43e2b8bb4491add0835d4ddb6440f0ee316be0 Mon Sep 17 00:00:00 2001 From: Steffen Mahler Date: Wed, 29 Apr 2020 10:40:41 +0200 Subject: [PATCH] type hint changed --- packages/Webkul/Checkout/src/Cart.php | 4 ++-- packages/Webkul/Tax/src/Helpers/Tax.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/Webkul/Checkout/src/Cart.php b/packages/Webkul/Checkout/src/Cart.php index 62be3d063..06ebde1e7 100755 --- a/packages/Webkul/Checkout/src/Cart.php +++ b/packages/Webkul/Checkout/src/Cart.php @@ -430,9 +430,9 @@ class Cart /** * Returns cart * - * @return \Webkul\Checkout\Models\Cart|null + * @return \Webkul\Checkout\Contracts\Cart|null */ - public function getCart(): ?\Webkul\Checkout\Models\Cart + public function getCart(): ?\Webkul\Checkout\Contracts\Cart { if ($this->getCurrentCustomer()->check()) { return $this->cartRepository->findOneWhere([ diff --git a/packages/Webkul/Tax/src/Helpers/Tax.php b/packages/Webkul/Tax/src/Helpers/Tax.php index 7f4952f81..0664079b1 100644 --- a/packages/Webkul/Tax/src/Helpers/Tax.php +++ b/packages/Webkul/Tax/src/Helpers/Tax.php @@ -17,7 +17,7 @@ class Tax * * @return array */ - public static function getTaxRatesWithAmount(\Webkul\Checkout\Models\Cart $that, bool $asBase = false): array + public static function getTaxRatesWithAmount(\Webkul\Checkout\Contracts\Cart $that, bool $asBase = false): array { $taxes = []; @@ -42,7 +42,7 @@ class Tax * * @return float */ - public static function getTaxTotal(\Webkul\Checkout\Models\Cart $that, bool $asBase = false): float + public static function getTaxTotal(\Webkul\Checkout\Contracts\Cart $that, bool $asBase = false): float { $taxes = self::getTaxRatesWithAmount($that, $asBase);