Skip to content

Commit fe36f35

Browse files
committed
minor #39209 [Console] Fix parameter order (jderusse)
This PR was merged into the 4.4 branch. Discussion ---------- [Console] Fix parameter order | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #39208 | License | MIT | Doc PR | - Commits ------- 726f361 Fix parameter order
2 parents e57b5f2 + 726f361 commit fe36f35

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Component/Console/Output/TrimmedBufferOutput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ class TrimmedBufferOutput extends Output
2525
private $buffer = '';
2626

2727
public function __construct(
28+
int $maxLength,
2829
?int $verbosity = self::VERBOSITY_NORMAL,
2930
bool $decorated = false,
30-
OutputFormatterInterface $formatter = null,
31-
int $maxLength
31+
OutputFormatterInterface $formatter = null
3232
) {
3333
if ($maxLength <= 0) {
3434
throw new InvalidArgumentException(sprintf('"%s()" expects a strictly positive maxLength. Got %d.', __METHOD__, $maxLength));

src/Symfony/Component/Console/Style/SymfonyStyle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class SymfonyStyle extends OutputStyle
4646
public function __construct(InputInterface $input, OutputInterface $output)
4747
{
4848
$this->input = $input;
49-
$this->bufferedOutput = new TrimmedBufferOutput($output->getVerbosity(), false, clone $output->getFormatter(), \DIRECTORY_SEPARATOR === '\\' ? 4 : 2);
49+
$this->bufferedOutput = new TrimmedBufferOutput(\DIRECTORY_SEPARATOR === '\\' ? 4 : 2, $output->getVerbosity(), false, clone $output->getFormatter());
5050
// Windows cmd wraps lines as soon as the terminal width is reached, whether there are following chars or not.
5151
$width = (new Terminal())->getWidth() ?: self::MAX_LINE_LENGTH;
5252
$this->lineLength = min($width - (int) (\DIRECTORY_SEPARATOR === '\\'), self::MAX_LINE_LENGTH);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy