Skip to content

Commit

Permalink
fix DownloadLinkFetcher for vs17 Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayesh committed Jul 6, 2024
1 parent a31a62e commit da74b57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DownloadLinkFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ private static function determineVCVersion(string $tag): string {
if (preg_match('/^php-7\.4\./', $tag)) {
return 'vc15';
}
return 'vs16';
if (preg_match('/^php-8\.[0123]\./', $tag)) {
return 'vs16';
}
return 'vs17';
}

private function getWindowsLinks(string $tag): array {
Expand Down

0 comments on commit da74b57

Please sign in to comment.