Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 324b160

Browse filesBrowse files
committed
trim(): Argument #1 () must be of type string, bool given
1 parent 30d5bd4 commit 324b160
Copy full SHA for 324b160

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎src/Symfony/Component/Console/Terminal.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Terminal.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ public static function hasSttyAvailable(): bool
7777
private static function initDimensions()
7878
{
7979
if ('\\' === \DIRECTORY_SEPARATOR) {
80-
if (preg_match('/^(\d+)x(\d+)(?: \((\d+)x(\d+)\))?$/', trim(getenv('ANSICON')), $matches)) {
80+
$ansicon = getenv('ANSICON');
81+
if (false !== $ansicon && preg_match('/^(\d+)x(\d+)(?: \((\d+)x(\d+)\))?$/', trim($ansicon), $matches)) {
8182
// extract [w, H] from "wxh (WxH)"
8283
// or [w, h] from "wxh"
8384
self::$width = (int) $matches[1];

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.