-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YearMonth: deprecate int argument for month, add support for Month enum. #96
YearMonth: deprecate int argument for month, add support for Month enum. #96
Conversation
e9928ba
to
13e0db8
Compare
13e0db8
to
3534c4e
Compare
Side note: I was thinking of removing The other option would be to change the signature right away in |
I have no experience releasing open source libraries. But if it's a BC Break, shouldn't it be done in a new major version, like 1.0 ? I was wondering why you don't have such a version yet, don't you think this library is stable / production-ready ? (I do) Anyway, if you still want to release 0.x version and 0.6 had a lot of BC Breaks, I (as a user) wouldn't be surprised that 0.7 has some as well. So IMHO, no need to do it in two versions, it would just be annoying having to change our code multiple times. |
3534c4e
to
d12be76
Compare
semver allows breaking changes in version The library is definitely production quality, but I feel like the API is not stable yet. Once we reach the Tagging
Adding a unit test would mean that we support this use case, and I'm personally against using objects this way. Loose comparison is an unfortunate "feature" of PHP, which exposes object internals, and supporting it prevents using features like internal cache / lazy loading. We're a bit in a grey zone here, where I want to avoid the BC break if possible, but still not officially support this use case. |
d12be76
to
1f5e9c8
Compare
Thank you, @gnutix! |
No description provided.