From d9861038bcc3cb2f38c7153bdca7d5ab89597afa Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen Date: Sun, 3 Jul 2022 14:47:43 +0800 Subject: Update beberlei/assert for PHP 8 compatibility Run `composer update beberlei/assert` using composer 2.3.8 on PHP 8.1.7 Updating other packages without updating this fails with: ``` Your requirements could not be resolved to an installable set of packages. Problem 1 - beberlei/assert v3.2.2 requires php ^7 -> your php version (8.1.7) does not satisfy that requirement. - spomky-labs/otphp v10.0.1 requires beberlei/assert ^3.0 -> satisfiable by beberlei/assert[v3.2.2]. - spomky-labs/otphp is locked to version v10.0.1 and an update of this package was not requested. ``` --- vendor/autoload.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vendor/autoload.php') diff --git a/vendor/autoload.php b/vendor/autoload.php index e6e3ad736..df8e3fc4e 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -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 ComposerAutoloaderInit19fc2ff1c0f9a92279c7979386bb2056::getLoader(); -- cgit v1.2.3