mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-07-25 08:09:08 +07:00
Only use config.platform.php, as it's guaranteed to be the required version of PHP
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -1387,10 +1387,6 @@ async function readPHPVersion() {
|
||||
composerFileContents['config']['platform']['php']) {
|
||||
return composerFileContents['config']['platform']['php'];
|
||||
}
|
||||
if (composerFileContents['require'] &&
|
||||
composerFileContents['require']['php']) {
|
||||
return composerFileContents['require']['php'];
|
||||
}
|
||||
}
|
||||
return 'latest';
|
||||
}
|
||||
|
Reference in New Issue
Block a user