Skip to content

Commit 14d73c7

Browse files
committed
fix: implicit nullable
1 parent 9a51925 commit 14d73c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CLI/Console.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public static function exit(int $status = 0): void
130130
* @param int $timeout
131131
* @return int
132132
*/
133-
public static function execute(array|string $cmd, string $input, string &$output, int $timeout = -1, callable $onProgress = null): int
133+
public static function execute(array|string $cmd, string $input, string &$output, int $timeout = -1, ?callable $onProgress = null): int
134134
{
135135
// If the $cmd is passed as string, it will be wrapped into a subshell by \proc_open
136136
// Forward stdout and exit codes from the subshell.
@@ -216,7 +216,7 @@ public static function isInteractive(): bool
216216
*
217217
* @throws \Exception
218218
*/
219-
public static function loop(callable $callback, int $sleep = 1 /* seconds */, int $delay = 0 /* seconds */, callable $onError = null): void
219+
public static function loop(callable $callback, int $sleep = 1 /* seconds */, int $delay = 0 /* seconds */, ?callable $onError = null): void
220220
{
221221
gc_enable();
222222

0 commit comments

Comments
 (0)