laminas / laminas-di

Automated dependency injection for PSR-11 containers
https://docs.laminas.dev/laminas-di/
BSD 3-Clause "New" or "Revised" License
36 stars 20 forks source link

Breakage with latest servicemanager and psr/container v2 #92 #78

Closed remicollet closed 2 years ago

remicollet commented 2 years ago

Running laminas-servicemanager-di test suite

PHP Fatal error: Declaration of Laminas\Di\Di::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /usr/share/php/Laminas/Di/Di.php on line 220

Ocramius commented 2 years ago

Ref: https://github.com/laminas/laminas-servicemanager/pull/147

Ocramius commented 2 years ago

https://github.com/laminas/laminas-servicemanager/releases/tag/3.15.1 should fix this: sad to see that work reverted, but our hopes that it would work were unfounded.