From 8ad991e6c1aa35a174423da61224a84a59345cb8 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 27 Oct 2016 15:19:01 +0200 Subject: [PATCH] [Console] Fix empty COLUMNS/LINES env vars --- src/Symfony/Component/Console/Terminal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Console/Terminal.php b/src/Symfony/Component/Console/Terminal.php index 9189f2ded3574..ddef70d7bf0cc 100644 --- a/src/Symfony/Component/Console/Terminal.php +++ b/src/Symfony/Component/Console/Terminal.php @@ -31,7 +31,7 @@ public function getWidth() self::initDimensions(); } - return self::$width; + return self::$width ?: 80; } /** @@ -49,7 +49,7 @@ public function getHeight() self::initDimensions(); } - return self::$height; + return self::$height ?: 50; } private static function initDimensions() 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