mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-24 07:55:35 +00:00
Update Cart.php
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user