1
0
Fork 0

Merge branch '2.3'

pull/10960/head
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

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,11 +166,7 @@ class ConsoleIO extends BaseIO
} }
if ($raw) { if ($raw) {
if ($sfVerbosity === OutputInterface::OUTPUT_NORMAL) { $sfVerbosity |= OutputInterface::OUTPUT_RAW;
$sfVerbosity = OutputInterface::OUTPUT_RAW;
} else {
$sfVerbosity |= OutputInterface::OUTPUT_RAW;
}
} }
if (null !== $this->startTime) { if (null !== $this->startTime) {

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];
} }
} }