Skip to content

Commit 5c99a0d

Browse files
committed
small fix in ItemCOllection constructor - Added default empty array for config argument
1 parent 2a770f6 commit 5c99a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Darryldecode/Cart/ItemCollection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ItemCollection extends Collection {
2424
* @param array|mixed $items
2525
* @param $config
2626
*/
27-
public function __construct($items, $config)
27+
public function __construct($items, $config = [])
2828
{
2929
parent::__construct($items);
3030

0 commit comments

Comments
 (0)