Skip to content

Commit cc87354

Browse files
authored
Merge pull request #48 from utopia-php/fix/nullable-onerror
Fix nullable type for Console::loop onError
2 parents da00ff6 + bec5e70 commit cc87354

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)