Update Cart.php

This commit is contained in:
Patrick
2022-01-18 00:13:27 +01:00
committed by GitHub
parent d19032c2a1
commit 027d223174

View File

@@ -84,11 +84,11 @@ class Cart
/** /**
* Set the current cart instance. * Set the current cart instance.
* *
* @param string|null $instance * @param string|InstanceIdentifier|null $instance
* *
* @return \Gloudemans\Shoppingcart\Cart * @return \Gloudemans\Shoppingcart\Cart
*/ */
public function instance(?string $instance = null) public function instance($instance = null)
{ {
$instance = $instance ?: self::DEFAULT_INSTANCE; $instance = $instance ?: self::DEFAULT_INSTANCE;