Skip to content

Commit 6b208c9

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: (27 commits) feat: add completion for DebugAutowiring search argument [Routing] Add support for aliasing routes [DependencyInjection] only allow `ReflectionNamedType` for `ServiceSubscriberTrait` Fix CS [Console] Open CompleteCommand for custom outputs [Intl] Update the ICU data to 70.1 [Messenger] Add completion for failed messages commands. Fix tests Fixing missing full_stack variable that's needed by toolbar.html.twig [PropertyInfo] Bump phpstan/phpdoc-parser [Security] Backport type fixes [VarExporter] escape unicode chars involved in directionality [Framework] Add completion to debug:container [Messenger] Add completion to command messenger:consume [Intl] Update the ICU data to 70.1 Fix more generic types Default access_decision_manager.strategy option with merge. Fix typos Update validators.ca.xlf Add missing Validator translations for Estonian ... Signed-off-by: Alexander M. Turek <me@derrabus.de>
2 parents 652b570 + cbdd4cd commit 6b208c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/PipeStdinInStdoutStdErrStreamSelect.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
exit(ERR_TIMEOUT);
3535
}
3636

37-
if (in_array(\STDOUT, $w) && strlen($out) > 0) {
37+
if (in_array(\STDOUT, $w) && '' !== $out) {
3838
$written = fwrite(\STDOUT, (string) $out, 32768);
3939
if (false === $written) {
4040
exit(ERR_WRITE_FAILED);
@@ -45,7 +45,7 @@
4545
$write = array_diff($write, [\STDOUT]);
4646
}
4747

48-
if (in_array(\STDERR, $w) && strlen($err) > 0) {
48+
if (in_array(\STDERR, $w) && '' !== $err) {
4949
$written = fwrite(\STDERR, (string) $err, 32768);
5050
if (false === $written) {
5151
exit(ERR_WRITE_FAILED);

0 commit comments

Comments
 (0)