diff --git a/library/think/console/Output.php b/library/think/console/Output.php index f9eb214e..65dc9fb8 100644 --- a/library/think/console/Output.php +++ b/library/think/console/Output.php @@ -25,10 +25,10 @@ use think\console\output\question\Confirmation; * Class Output * @package think\console * - * @see think\console\output\driver\Console::setDecorated + * @see \think\console\output\driver\Console::setDecorated * @method void setDecorated($decorated) * - * @see think\console\output\driver\Buffer::fetch + * @see \think\console\output\driver\Buffer::fetch * @method string fetch() * * @method void info($message) diff --git a/library/think/console/output/driver/Console.php b/library/think/console/output/driver/Console.php index 3b8f3c7e..0dcd0f77 100644 --- a/library/think/console/output/driver/Console.php +++ b/library/think/console/output/driver/Console.php @@ -356,10 +356,10 @@ class Console { if (DIRECTORY_SEPARATOR === '\\') { return - 0 >= version_compare('10.0.10586', PHP_WINDOWS_VERSION_MAJOR . '.' . PHP_WINDOWS_VERSION_MINOR . '.' . PHP_WINDOWS_VERSION_BUILD) - || false !== getenv('ANSICON') - || 'ON' === getenv('ConEmuANSI') - || 'xterm' === getenv('TERM'); + '10.0.10586' === PHP_WINDOWS_VERSION_MAJOR . '.' . PHP_WINDOWS_VERSION_MINOR . '.' . PHP_WINDOWS_VERSION_BUILD + || false !== getenv('ANSICON') + || 'ON' === getenv('ConEmuANSI') + || 'xterm' === getenv('TERM'); } return function_exists('posix_isatty') && @posix_isatty($stream);