We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea11dfa commit d0a9cc8Copy full SHA for d0a9cc8
src/Cli/IO.php
@@ -216,6 +216,12 @@ private static function safeWrite(string|array $messages): void
216
$messages = explode(PHP_EOL, $messages);
217
}
218
219
+ // Symfony `StreamOutput` is not compatible with non-blocking mode
220
+ // (in that case `fwrite` returns the number of bytes written, which Symfony ignores)
221
+ // Amphp sets STDOUT and STDERR to non-blocking mode, so we need to set them back to blocking mode here.
222
+ stream_set_blocking(STDOUT, true);
223
+ stream_set_blocking(STDERR, true);
224
+
225
self::$output->writeln($messages);
226
227
// Render the spinner again
0 commit comments