mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-21 04:54:45 +07:00
Only use config.platform.php, as it's guaranteed to be the required version of PHP
This commit is contained in:
@ -464,12 +464,6 @@ export async function readPHPVersion(): Promise<string> {
|
||||
) {
|
||||
return composerFileContents['config']['platform']['php'];
|
||||
}
|
||||
if (
|
||||
composerFileContents['require'] &&
|
||||
composerFileContents['require']['php']
|
||||
) {
|
||||
return composerFileContents['require']['php'];
|
||||
}
|
||||
}
|
||||
|
||||
return 'latest';
|
||||
|
Reference in New Issue
Block a user