type hint changed
This commit is contained in:
parent
cbd873b106
commit
5d43e2b8bb
|
|
@ -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([
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue