Skip to content

Commit 52aca05

Browse files
committed
Use integrated operator with version_compare
1 parent 872e83b commit 52aca05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/InstallPackageCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ private function download($packageName, $provider, $options = []) {
378378
$latest = $version;
379379
} else {
380380
// Replace latest version with current one if it's higher
381-
if (version_compare($version, $latest) == 1) {
381+
if (version_compare($version, $latest, '>=')) {
382382
$latest = $version;
383383
}
384384
}

0 commit comments

Comments
 (0)