Add support for PHP 8.0.0-dev #104

This commit is contained in:
Shivam Mathur
2019-12-09 08:09:03 +05:30
parent 14acb26bdc
commit 1cf6a369bb
11 changed files with 156 additions and 108 deletions

View File

@ -22,24 +22,6 @@ export async function getInput(
}
}
/**
* Function to read the PHP version.
*/
export async function getVersion(): Promise<string> {
const version: string = await getInput('php-version', true);
switch (version) {
case '8.0':
case '8.0-dev':
case '7.4':
case '7.4snapshot':
case '7.4nightly':
case 'nightly':
return '7.4';
default:
return version;
}
}
/**
* Async foreach loop
*