Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Allow psr/container v2 [BC Break] #34

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

marcelthole
Copy link
Contributor

@marcelthole marcelthole commented Jul 15, 2024

Q A
BC Break yes
New Feature yes

Description

For a laminas/laminas-servicemanager v4 upgrade this package must allow psr/container v2

The added type hints are allowed for the existing psr/container package v1 and are required for psr/container v2

Signed-off-by: Marcel Thole <[email protected]>
@marcelthole
Copy link
Contributor Author

sorry, missed this in #33 😞

@Ocramius
Copy link
Member

The problem here is that both consumers are not final, and this becomes a major BC break.

@marcelthole
Copy link
Contributor Author

oh that's a good point.
is it okay if i make the classes final and this will be a BC Break?

@Ocramius
Copy link
Member

IMO yep

@marcelthole marcelthole changed the title Allow psr/container v2 Allow psr/container v2 [BC Break] Jul 15, 2024
@Ocramius Ocramius added this to the 4.0.0 milestone Jul 15, 2024
@boesing
Copy link
Member

boesing commented Jul 15, 2024

Please keep in mind that if we release a new major, we should also add a bunch of type-safety.
I know that this will be an additional amount of work but since there are dependants of this component, even from laminas, that would allow us having less new majors everywhere.

So absolutely fine having this in v4 but we should also try to focus on implementing some more BC breaks regarding type-safety.

@gsteel gsteel changed the base branch from 3.13.x to 4.0.x July 17, 2024 16:15
Copy link
Member

@gsteel gsteel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @marcelthole

@gsteel gsteel merged commit f6b34a7 into laminas:4.0.x Jul 17, 2024
12 of 13 checks passed
@gsteel gsteel self-assigned this Jul 17, 2024
@marcelthole marcelthole deleted the allow-psr-container-2 branch July 18, 2024 05:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants