Composer update
This commit is contained in:
10
www/vendor/sebastian/environment/src/Console.php
vendored
10
www/vendor/sebastian/environment/src/Console.php
vendored
@@ -34,7 +34,7 @@ final class Console
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public const STDIN = 0;
|
||||
public const STDIN = 0;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
@@ -60,10 +60,10 @@ final class Console
|
||||
|
||||
if ($this->isWindows()) {
|
||||
// @codeCoverageIgnoreStart
|
||||
return (defined('STDOUT') && function_exists('sapi_windows_vt100_support') && @sapi_windows_vt100_support(STDOUT))
|
||||
|| false !== getenv('ANSICON')
|
||||
|| 'ON' === getenv('ConEmuANSI')
|
||||
|| 'xterm' === getenv('TERM');
|
||||
return (defined('STDOUT') && function_exists('sapi_windows_vt100_support') && @sapi_windows_vt100_support(STDOUT)) ||
|
||||
false !== getenv('ANSICON') ||
|
||||
'ON' === getenv('ConEmuANSI') ||
|
||||
'xterm' === getenv('TERM');
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
|
||||
|
||||
@@ -289,8 +289,12 @@ final class Runtime
|
||||
foreach ($values as $value) {
|
||||
$set = ini_get($value);
|
||||
|
||||
if (isset($config[$value]) && $set != $config[$value]) {
|
||||
$diff[] = sprintf('%s=%s', $value, $set);
|
||||
if (empty($set)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ((!isset($config[$value]) || ($set !== $config[$value]))) {
|
||||
$diff[$value] = sprintf('%s=%s', $value, $set);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user