Separate package warning from view representation
parent
52ca1bd9c5
commit
086c9d5c56
|
@ -375,16 +375,13 @@ EOT
|
|||
$replacement = (is_string($latestPackage->getReplacementPackage()))
|
||||
? 'Use ' . $latestPackage->getReplacementPackage() . ' instead'
|
||||
: 'No replacement was suggested';
|
||||
|
||||
$io->writeError('');
|
||||
$io->writeError(
|
||||
sprintf(
|
||||
"<warning>Package %s is abandoned, you should avoid using it. %s.</warning>",
|
||||
$package->getPrettyName(),
|
||||
$replacement
|
||||
),
|
||||
false
|
||||
$packageWarning = sprintf(
|
||||
'Package %s is abandoned, you should avoid using it. %s.',
|
||||
$package->getPrettyName(),
|
||||
$replacement
|
||||
);
|
||||
$io->writeError('');
|
||||
$io->writeError('<warning>' . $packageWarning . '</warning>', false);
|
||||
}
|
||||
} else {
|
||||
$io->write($indent . $package, false);
|
||||
|
|
Loading…
Reference in New Issue