Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7c1febd

Browse files
committed
minor #23124 [Console] remove now useless condition (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- [Console] remove now useless condition | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- c9c3495 remove now useless condition
2 parents 63ecc9c + c9c3495 commit 7c1febd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Symfony/Component/Console/Helper/ProcessHelper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ public function run(OutputInterface $output, $cmd, $error = null, callable $call
4343

4444
$formatter = $this->getHelperSet()->get('debug_formatter');
4545

46-
if (is_array($cmd)) {
47-
$process = new Process($cmd);
48-
} elseif ($cmd instanceof Process) {
46+
if ($cmd instanceof Process) {
4947
$process = $cmd;
5048
} else {
5149
$process = new Process($cmd);

0 commit comments

Comments
 (0)