Update Phive configuration

Phive has released version `0.15.0` which ups the minimum supported PHP version to PHP 7.3.

This adds the switch statement for Phive to take this into account.

Ref: https://github.com/phar-io/phive/releases
This commit is contained in:
jrfnl
2021-08-01 19:13:11 +02:00
parent 36cb9fb0fc
commit f31d416e6e
3 changed files with 7 additions and 0 deletions

View File

@ -298,6 +298,9 @@ export async function addPhive(data: RS): Promise<string> {
case /7\.1/.test(data['php_version']):
data['version'] = data['version'].replace('latest', '0.13.5');
break;
case /7\.2/.test(data['php_version']):
data['version'] = data['version'].replace('latest', '0.14.5');
break;
}
if (data['version'] === 'latest') {
data['domain'] = data['domain'] + '/releases';