1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 09:32:55 +00:00

Merge branch '2.3'

This commit is contained in:
Jordi Boggiano 2022-07-20 22:47:44 +02:00
commit 03e4d19266
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
2 changed files with 3 additions and 7 deletions
src/Composer

View file

@ -43,7 +43,7 @@ class ConsoleIO extends BaseIO
/** @var float */ /** @var float */
private $startTime; private $startTime;
/** @var array<int, int> */ /** @var array<IOInterface::*, OutputInterface::VERBOSITY_*> */
private $verbosityMap; private $verbosityMap;
/** /**
@ -166,12 +166,8 @@ class ConsoleIO extends BaseIO
} }
if ($raw) { if ($raw) {
if ($sfVerbosity === OutputInterface::OUTPUT_NORMAL) {
$sfVerbosity = OutputInterface::OUTPUT_RAW;
} else {
$sfVerbosity |= OutputInterface::OUTPUT_RAW; $sfVerbosity |= OutputInterface::OUTPUT_RAW;
} }
}
if (null !== $this->startTime) { if (null !== $this->startTime) {
$memoryUsage = memory_get_usage() / 1024 / 1024; $memoryUsage = memory_get_usage() / 1024 / 1024;

View file

@ -107,7 +107,7 @@ class Hg
{ {
if (false === self::$version) { if (false === self::$version) {
self::$version = null; self::$version = null;
if (0 === $process->execute('hg --version', $output) && Preg::isMatch('/^.+? (\d+(?:\.\d+)+)\)?\r?\n/', $output, $matches)) { if (0 === $process->execute('hg --version', $output) && Preg::isMatch('/^.+? (\d+(?:\.\d+)+)(?:\+.*?)?\)?\r?\n/', $output, $matches)) {
self::$version = $matches[1]; self::$version = $matches[1];
} }
} }