-
Notifications
You must be signed in to change notification settings - Fork 14
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
IBX-7959: Added ContentInfo::getSectionId
strict getter
#348
Conversation
I agree on the content of this PR, but not on the targeted branch ( |
Hey @patrickallaert Yes we understand this is not compliant with semver in some regards. Unfortunately we do not plan to release 4.7 as we've been working on the next major already. We need to introduce new deprecations in the current 4.6 release as we want to improve the codebase considerably in 5.0, despite inconveniences it creates for developers. This particular change is also a puzzle to a bigger project where we plan to introduce proper getters on our Value Objects to avoid relying on magic methods - we learned on multiple occasions it has serious performance implications. What's more - the type hint was always present in the doc block and if you haven't been sanitizing the value it could blow up in other places too. Hope you can understand our decision. |
Co-authored-by: Andrew Longosz <[email protected]>
89407db
to
130f3d8
Compare
Quality Gate passedIssues Measures |
ContentInfo::getSectionId
strict getter
v4.6
Added
getSectionId
method toContentInfo
VO to avoid using php magic to get the value.Checklist:
$ composer fix-cs
).@ibexa/engineering
).