1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 00:53:06 +00:00

Allow autoload to run on 5.6 still, add early exits when running composer or autoload.php with outdated PHP versions, fixes #10714, refs #10709

This commit is contained in:
Jordi Boggiano 2022-04-06 22:07:16 +02:00
parent 2ef9e14c2f
commit e0cce2bfb0
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
11 changed files with 33 additions and 7 deletions

View file

@ -2,6 +2,11 @@
// autoload.php @generated by Composer
if (PHP_VERSION_ID < 50600) {
echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
exit(1);
}
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitFilesAutoload::getLoader();