Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90a7fa0 commit a52b658Copy full SHA for a52b658
src/Symfony/Component/Console/Style/SymfonyStyle.php
@@ -316,8 +316,8 @@ private function getProgressBar()
316
private function getTerminalWidth()
317
{
318
$application = new Application();
319
- list ($width, $height) = $application->getTerminalDimensions();
+ $dimensions = $application->getTerminalDimensions();
320
321
- return $width;
+ return $dimensions[0] ?: self::MAX_LINE_LENGTH;
322
}
323
0 commit comments