type hint changed

This commit is contained in:
Steffen Mahler 2020-04-29 10:40:41 +02:00
parent cbd873b106
commit 5d43e2b8bb
2 changed files with 4 additions and 4 deletions

View File

@ -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([

View File

@ -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);