Skip to content

Commit cc3957b

Browse files
authored
Fix to allow ->toArray() on collection
1 parent 0c475c6 commit cc3957b

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)