Skip to content

Commit bec5e70

Browse files
committed
Fix nullable type for Console::loop onError
1 parent da00ff6 commit bec5e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CLI/Console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public static function isInteractive(): bool
201201
*
202202
* @throws \Exception
203203
*/
204-
public static function loop(callable $callback, int $sleep = 1 /* seconds */, int $delay = 0 /* seconds */, callable $onError = null): void
204+
public static function loop(callable $callback, int $sleep = 1 /* seconds */, int $delay = 0 /* seconds */, ?callable $onError = null): void
205205
{
206206
gc_enable();
207207

0 commit comments

Comments
 (0)