8000 merged branch egeloen/f-2.0-terminal-width (PR #6571) · symfony/symfony@5157693 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5157693

Browse files
committed
merged branch egeloen/f-2.0-terminal-width (PR #6571)
This PR was merged into the 2.0 branch. Commits ------- f299bd0 [Console] Make getTerminalWith & getTerminalHeight public Discussion ---------- [Console] Make getTerminalWith & getTerminalHeight public Bug fix: yes Feature addition: yes Backwards compatibility break: no Fixes the following tickets: ~ Todo: - License of the code: MIT Documentation PR: ~ After demand in #6567, I open an other one on the 2.0 branch.
2 parents cd0a9d7 + f299bd0 commit 5157693

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