Skip to content

Commit 8bf5c6c

Browse files
committed
fix stability comparsion
1 parent 35c40b6 commit 8bf5c6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/TUF/TufFetcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function () {
5858
public function getLatestVersionForBranch(int $branch): ?string
5959
{
6060
$versionMatch = $this->getReleases()->filter(function (ReleaseData $release) use ($branch): bool {
61-
return $release->stability === "stable" && $release->version[0] === (string) $branch;
61+
return strtolower($release->stability) === "stable" && $release->version[0] === (string) $branch;
6262
})->sort(function (ReleaseData $releaseA, ReleaseData $releaseB): int {
6363
return version_compare($releaseA->version, $releaseB->version);
6464
})->last();

0 commit comments

Comments
 (0)