diff -up ./src/autoload.php.rpm ./src/autoload.php --- ./src/autoload.php.rpm 2022-07-19 07:14:45.761379036 +0200 +++ ./src/autoload.php 2022-07-19 07:16:56.028221222 +0200 @@ -5,7 +5,6 @@ declare(strict_types=1); namespace Laminas\ServiceManager; -use Composer\InstalledVersions; use Interop\Container\Containerinterface as InteropContainerInterface; use Interop\Container\Exception\ContainerException as InteropContainerException; use Interop\Container\Exception\NotFoundException as InteropNotFoundException; @@ -28,7 +27,8 @@ if (! interface_exists(InteropNotFoundEx class_alias(NotFoundExceptionInterface::class, InteropNotFoundException::class); } -$installedContainerVersion = InstalledVersions::getVersion('psr/container'); +$a=new \ReflectionMethod('Psr\\Container\\ContainerInterface', 'has'); +$installedContainerVersion = ($a->hasReturnType() ? '2' : '1'); assert( $installedContainerVersion !== null,