Skip to content

Commit

Permalink
Fix #431, only outdated packages will be reported
Browse files Browse the repository at this point in the history
  • Loading branch information
pattisahusiwa committed Jun 27, 2020
1 parent 844f6a4 commit 40d626b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hal/Metric/System/Packages/Composer/Composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function calculate(Metrics $metrics)
$package->installed = $installed;
$package->required = $version;
$package->name = $requirement;
$package->status = version_compare($package->required, $package->latest) === -1 ? 'outdated' : 'latest';
$package->status = version_compare($installed, $package->latest, '<') ? 'outdated' : 'latest';
$packages[$requirement] = $package;
}

Expand Down

0 comments on commit 40d626b

Please sign in to comment.