8000 [Process] pass all output to the wait-until callback · symfony/symfony@a320133 · GitHub
[go: up one dir, main page]

Skip to content

Commit a320133

Browse files
[Process] pass all output to the wait-until callback
1 parent 07c46a2 commit a320133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Process/Process.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ public function waitUntil(callable $callback): bool
458458

459459
foreach ($output as $type => $data) {
460460
if (3 !== $type) {
461-
$ready = $ready || $callback(self::STDOUT === $type ? self::OUT : self::ERR, $data);
461+
$ready = $callback(self::STDOUT === $type ? self::OUT : self::ERR, $data) || $ready;
462462
} elseif (!isset($this->fallbackStatus['signaled'])) {
463463
$this->fallbackStatus['exitcode'] = (int) $data;
464464
}

0 commit comments

Comments
 (0)
0