Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/CLI/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public static function exit(int $status = 0): void
* @param int $timeout
* @return int
*/
public static function execute(array|string $cmd, string $input, string &$output, int $timeout = -1, callable $onProgress = null): int
public static function execute(array|string $cmd, string $input, string &$output, int $timeout = -1, ?callable $onProgress = null): int
{
// If the $cmd is passed as string, it will be wrapped into a subshell by \proc_open
// Forward stdout and exit codes from the subshell.
Expand Down Expand Up @@ -216,7 +216,7 @@ public static function isInteractive(): bool
*
* @throws \Exception
*/
public static function loop(callable $callback, int $sleep = 1 /* seconds */, int $delay = 0 /* seconds */, callable $onError = null): void
public static function loop(callable $callback, int $sleep = 1 /* seconds */, int $delay = 0 /* seconds */, ?callable $onError = null): void
{
gc_enable();

Expand Down
Loading