From 57e4ee1013caf526b85a56c8354c904d8968734d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 19 Jul 2022 07:27:38 +0200 Subject: update to 3.15.0 raise dependency on psr/container 1.1 and allow version 2 --- php-laminas-servicemanager-rpm.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 php-laminas-servicemanager-rpm.patch (limited to 'php-laminas-servicemanager-rpm.patch') 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, -- cgit