Skip to content

Commit

Permalink
アップデート可能なバージョンの数量カウントが間違っていたため調整
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Sep 20, 2024
1 parent 4b49386 commit 6255313
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/baser-core/src/Service/PluginsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -774,13 +774,13 @@ public function getAvailableCoreVersionInfo()
if (!preg_match('/^' . preg_quote($major) . '/', $version)) continue;
$currentVerPoint = BcUtil::verpoint($currentVersion);
$latestVerPoint = BcUtil::verpoint($latest);
$updateVerPoint = BcUtil::verpoint($version);
// 現在のパッケージが開発版の場合は無視
if ($currentVerPoint === false) break;
// アップデートバージョンが開発版の場合は無視
if ($latestVerPoint === false) continue;
if ($updateVerPoint === false) continue;
// アップデートバージョンが現在のパッケージのバージョンより小さい場合は無視
if ($currentVerPoint > $latestVerPoint) break;
if ($currentVerPoint > $updateVerPoint) break;
if ($currentVersion === $version) break;
$versions[] = $version;
Expand Down

0 comments on commit 6255313

Please sign in to comment.