8000 [Console] Make getTerminalWith & getTerminalHeight public · symfony/symfony@f299bd0 · GitHub
[go: up one dir, main page]

Skip to content

Commit f299bd0

Browse files
committed
[Console] Make getTerminalWith & getTerminalHeight public
1 parent d865278 commit f299bd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Console/Application.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ public function renderException($e, $output)
794794
*
795795
* @return int|null
796796
*/
797-
protected function getTerminalWidth()
797+
public function getTerminalWidth()
798798
{
799799
if (defined('PHP_WINDOWS_VERSION_BUILD') && $ansicon = getenv('ANSICON')) {
800800
return preg_replace('{^(\d+)x.*$}', '$1', $ansicon);
@@ -810,7 +810,7 @@ protected function getTerminalWidth()
810810
*
811811
* @return int|null
812812
*/
813-
protected function getTerminalHeight()
813+
public function getTerminalHeight()
814814
{
815815
if (defined('PHP_WINDOWS_VERSION_BUILD') && $ansicon = getenv('ANSICON')) {
816816
return preg_replace('{^\d+x\d+ \(\d+x(\d+)\)$}', '$1', trim($ansicon));

0 commit comments

Comments
 (0)
0