blob: ec77e06c99af634e5b9f909df20592b9b8043834 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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,
|