summaryrefslogtreecommitdiffstats
path: root/php-laminas-servicemanager-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-07-19 07:27:38 +0200
committerRemi Collet <remi@php.net>2022-07-19 07:27:38 +0200
commit57e4ee1013caf526b85a56c8354c904d8968734d (patch)
tree9a9e6681bd56dad73d57274bd81d7b94c1dd3873 /php-laminas-servicemanager-rpm.patch
parent07726a2a42798a4606571e795a5e1c9f158c6d17 (diff)
update to 3.15.0
raise dependency on psr/container 1.1 and allow version 2
Diffstat (limited to 'php-laminas-servicemanager-rpm.patch')
-rw-r--r--php-laminas-servicemanager-rpm.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/php-laminas-servicemanager-rpm.patch b/php-laminas-servicemanager-rpm.patch
new file mode 100644
index 0000000..ec77e06
--- /dev/null
+++ b/php-laminas-servicemanager-rpm.patch
@@ -0,0 +1,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,