Skip to content

Add compatibility with psr/container 2.0#51

Open
chrisemerson wants to merge 1 commit intoAcclimateContainer:2.xfrom
chrisemerson:2.x
Open

Add compatibility with psr/container 2.0#51
chrisemerson wants to merge 1 commit intoAcclimateContainer:2.xfrom
chrisemerson:2.x

Conversation

@chrisemerson
Copy link

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
Copy link

kambho commented Aug 21, 2023

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

@chrisemerson
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants