mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
Remove code blocks for php <7.2 compatibility (#10417)
This commit is contained in:
parent
e6cfc924f2
commit
1c928466a9
16 changed files with 18 additions and 110 deletions
|
@ -252,8 +252,8 @@ class Application extends BaseApplication
|
|||
function_exists('php_uname') ? php_uname('s') . ' / ' . php_uname('r') : 'Unknown OS'
|
||||
), true, IOInterface::DEBUG);
|
||||
|
||||
if (PHP_VERSION_ID < 50302) {
|
||||
$io->writeError('<warning>Composer only officially supports PHP 5.3.2 and above, you will most likely encounter problems with your PHP '.PHP_VERSION.', upgrading is strongly recommended.</warning>');
|
||||
if (PHP_VERSION_ID < 70205) {
|
||||
$io->writeError('<warning>Composer supports PHP 7.2.5 and above, you will most likely encounter problems with your PHP '.PHP_VERSION.'. Upgrading is strongly recommended but you can use Composer 2.2.x LTS as a fallback.</warning>');
|
||||
}
|
||||
|
||||
if (XdebugHandler::isXdebugActive() && !Platform::getEnv('COMPOSER_DISABLE_XDEBUG_WARN')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue