8000 minor #28965 [Process] pass all output to the wait-until callback (ni… · symfony/symfony@8c24c35 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8c24c35

Browse files
minor #28965 [Process] pass all output to the wait-until callback (nicolas-grekas)
This PR was merged into the 4.2-dev branch. Discussion ---------- [Process] pass all output to the wait-until callback | Q | A | ------------- | --- | Branch? | 4.2 | Bug fix? | yes | New feature? | | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Introduced yesterday, my bad. Should make appveyor green hopefully. Commits ------- a320133 [Process] pass all output to the wait-until callback
2 parents 2edadf0 + a320133 commit 8c24c35

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