N°5122 - Minor libs update according to new PHP min version

This commit is contained in:
Molkobain
2022-08-23 11:26:47 +02:00
parent 7b60c9c71a
commit bbb5b86864
15 changed files with 182 additions and 240 deletions

View File

@@ -44,23 +44,19 @@ class ConsoleHelper
public const HIGHLIGHT_INFO = 'info';
public const HIGHLIGHT_ERROR = 'error';
/**
* @var array
* @psalm-var array<ConsoleHelper::HIGHLIGHT_*, ConsoleHelper::COLOR_GREEN|ConsoleHelper::COLOR_RED>
*/
private $highlightMap = [
/** @psalm-var array<ConsoleHelper::HIGHLIGHT_*, ConsoleHelper::COLOR_GREEN|ConsoleHelper::COLOR_RED> */
private array $highlightMap = [
self::HIGHLIGHT_INFO => self::COLOR_GREEN,
self::HIGHLIGHT_ERROR => self::COLOR_RED,
];
/** @var string Exists only for testing. */
private $eol = PHP_EOL;
private string $eol = PHP_EOL;
/** @var resource Exists only for testing. */
private $stderr = STDERR;
/** @var bool */
private $supportsColor;
private bool $supportsColor;
/**
* @param resource $resource