Skip to content

Commit

Permalink
fix version selector
Browse files Browse the repository at this point in the history
  • Loading branch information
SniperSister committed Jan 20, 2025
1 parent 04f0780 commit 57ae3a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Console/Traits/RequestTargetVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Console\Traits;

use App\TUF\ReleaseData;
use App\TUF\TufFetcher;

trait RequestTargetVersion
Expand All @@ -12,7 +13,7 @@ protected function queryTargetVersion(): string

return $this->choice( // @phpstan-ignore-line
"What's the target version?",
$releases->map(fn ($release) => $release["version"])->values()->toArray() // @phpstan-ignore-line
$releases->map(fn (ReleaseData $release) => $release->version)->values()->toArray()
);
}
}

0 comments on commit 57ae3a4

Please sign in to comment.