laminas / laminas-crypt

Strong cryptography tools and password hashing
https://docs.laminas.dev/laminas-crypt/
BSD 3-Clause "New" or "Revised" License
39 stars 24 forks source link

Allow psr/container v2 [BC Break] #34

Closed marcelthole closed 1 month ago

marcelthole commented 1 month ago
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

marcelthole commented 1 month ago

sorry, missed this in #33 😞

Ocramius commented 1 month ago

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

marcelthole commented 1 month ago

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

Ocramius commented 1 month ago

IMO yep

boesing commented 1 month ago

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.