mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-25 15:04:07 +07:00
Add support for PHP 8.0.0-dev #104
This commit is contained in:
18
src/utils.ts
18
src/utils.ts
@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user