Open mairo744 opened 5 days ago
This library does not yet support laminas/servicemanager@4.0
- the bug is that it is an undeclared dependency and it shouldn't really be installable with service manager v4.
Upgrading to SMv4 here will be a BC break and will need to happen in the next major release
See https://github.com/laminas/laminas-servicemanager/issues/216
Bug Report
Summary
This issue appeared after updating
laminas/laminas-servicemanager
to v4Error message:
In the new version of
Laminas\ServiceManager\AbstractPluginManager
, properties have type declarations:Laminas\Hydrator\HydratorPluginManager
extendsLaminas\ServiceManager\AbstractPluginManager
, but its properties are only typed through annotations:Composer allows the installation of laminas/laminas-servicemanager version 4 because it is only a development requirement: https://packagist.org/packages/laminas/laminas-hydrator#4.15.0
Current behavior
The issue does not occur with laminas/laminas-servicemanager version 3.
How to reproduce
Update laminas/laminas-servicemanager to version 4, then observe a crash during the initialization of
Laminas\Hydrator\HydratorPluginManager
inLaminas\Hydrator\HydratorPluginManagerFactory
Expected behavior
The HydratorPluginManager should be initialized without type conflicts.