diff --git a/src/AsyncTools.php b/src/AsyncTools.php index bf06d4082..89d1ad111 100644 --- a/src/AsyncTools.php +++ b/src/AsyncTools.php @@ -327,7 +327,7 @@ abstract class AsyncTools extends StrTools } finally { Magic::togglePeriodicLogging(); } - return \array_shift($lines); + return \array_shift($lines) ?? ''; } /** * Asynchronously write to stdout/browser.