Skip to content

Commit da74b57

Browse files
committed
fix DownloadLinkFetcher for vs17 Windows builds
1 parent a31a62e commit da74b57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/DownloadLinkFetcher.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ private static function determineVCVersion(string $tag): string {
3232
if (preg_match('/^php-7\.4\./', $tag)) {
3333
return 'vc15';
3434
}
35-
return 'vs16';
35+
if (preg_match('/^php-8\.[0123]\./', $tag)) {
36+
return 'vs16';
37+
}
38+
return 'vs17';
3639
}
3740

3841
private function getWindowsLinks(string $tag): array {

0 commit comments

Comments
 (0)