Skip to content

Commit 3bd5f4c

Browse files
committed
[Console] Fixed SymfonyStyle when get terminal width fails
1 parent 90a7fa0 commit 3bd5f4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,6 @@ private function getTerminalWidth()
318318
$application = new Application();
319319
list ($width, $height) = $application->getTerminalDimensions();
320320

321-
return $width;
321+
return $width ?: self::MAX_LINE_LENGTH;
322322
}
323323
}

0 commit comments

Comments
 (0)