Skip to content

Commit 01d5617

Browse files
freekmurzeclaude
andcommitted
Fix #617: Add default value for TasksCollection constructor parameter
The $taskClassNames parameter had no default value, causing an "Unresolvable dependency" error when Laravel's container tried to resolve TasksCollection before the singleton binding was registered. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b5848da commit 01d5617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tasks/TasksCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class TasksCollection extends Collection
88
{
9-
public function __construct($taskClassNames)
9+
public function __construct($taskClassNames = [])
1010
{
1111
$tasks = collect($taskClassNames)
1212
->map(function ($taskParameters, $taskClass) {

0 commit comments

Comments
 (0)