Skip to content

Commit

Permalink
DQA-5289: Display warning for abandoned packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaocsilva committed Nov 8, 2022
1 parent 4cb7584 commit 26ffda1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/TaskRunner/Commands/ToolCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,9 @@ protected function componentOutdated()
foreach ($outdatedPackages['installed'] as $outdatedPackage) {
if (!array_key_exists('latest', $outdatedPackage)) {
echo "Package " . $outdatedPackage['name'] . " does not provide information about last version." . PHP_EOL;
} elseif (array_key_exists('warning', $outdatedPackage)) {
echo $outdatedPackage['warning'] . PHP_EOL;
$this->componentCheckOutdatedFailed = true;
} else {
echo "Package " . $outdatedPackage['name'] . " with version installed " . $outdatedPackage["version"] . " is outdated, please update to last version - " . $outdatedPackage["latest"] . PHP_EOL;
$this->componentCheckOutdatedFailed = true;
Expand Down

0 comments on commit 26ffda1

Please sign in to comment.