Skip to content

Commit 5233740

Browse files
fix: initialize dispatcher property to prevent access before initialization error
1 parent e646eaf commit 5233740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/console/src/Scheduling/Schedule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class Schedule
6969
/**
7070
* The job dispatcher implementation.
7171
*/
72-
protected Dispatcher $dispatcher;
72+
protected ?Dispatcher $dispatcher = null;
7373

7474
/**
7575
* The cache of mutex results.

0 commit comments

Comments
 (0)