File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,12 @@ public function consume(): void;
48
48
/**
49
49
* Reload failed message into waiting queue.
50
50
*/
51
- public function reload (string $ queue = null ): int ;
51
+ public function reload (? string $ queue = null ): int ;
52
52
53
53
/**
54
54
* Delete all failed message from failed queue.
55
55
*/
56
- public function flush (string $ queue = null ): bool ;
56
+ public function flush (? string $ queue = null ): bool ;
57
57
58
58
/**
59
59
* Return info for current queue.
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public function fail(mixed $data): bool
109
109
return false ;
110
110
}
111
111
112
- public function reload (string $ queue = null ): int
112
+ public function reload (? string $ queue = null ): int
113
113
{
114
114
$ channel = $ this ->channel ->getFailed ();
115
115
if ($ queue ) {
@@ -127,7 +127,7 @@ public function reload(string $queue = null): int
127
127
return $ num ;
128
128
}
129
129
130
- public function flush (string $ queue = null ): bool
130
+ public function flush (? string $ queue = null ): bool
131
131
{
132
132
$ channel = $ this ->channel ->getFailed ();
133
133
if ($ queue ) {
You can’t perform that action at this time.
0 commit comments