8000 [Console] Fix empty COLUMNS/LINES env vars · symfony/symfony@8ad991e · GitHub
[go: up one dir, main page]

Skip to content

Commit 8ad991e

Browse files
[Console] Fix empty COLUMNS/LINES env vars
1 parent bda7e6b commit 8ad991e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Console/Terminal.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function getWidth()
3131
self::initDimensions();
3232
}
3333

34-
return self::$width;
34+
return self::$width ?: 80;
3535
}
3636

3737
/**
@@ -49,7 +49,7 @@ public function getHeight()
4949
self::initDimensions();
5050
}
5151

52-
return self::$height;
52+
return self::$height ?: 50;
5353
}
5454

5555
private static function initDimensions()

0 commit comments

Comments
 (0)
0