AcclimateContainer / acclimate-container

Adapters for PHP framework containers to an interoperable interface
MIT License
220 stars 16 forks source link

Add compatibility with psr/container 2.0 #51

Open chrisemerson opened 1 year ago

chrisemerson commented 1 year ago

Adding return types to existing implementations will still be compatible with psr/container 1.0 also because of PHP's covariance rules, while adding compatibility with psr/container 2.0. Leaving off parameter types similarly will maintain compatibility with both as per PHP's contravariance rules.

kambho commented 1 year ago

This is exactly the issue I've been facing. This would be perfect!

chrisemerson commented 1 year ago

If this package is no longer maintained can it be marked as abandoned on packagist?