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
Typehinting #834
base: master
Are you sure you want to change the base?
Typehinting #834
Conversation
This will be a BC break. |
You can ignore this reply (I wrote something wrong). :-) (Unless you really want to read it. Not going to delete it because deleting one's own replies at GitHub is in bad taste IMO).
^ That. Specifically, support for return type declarations wasn't added until PHP 7.0, so adding them to SimplePie would, at the very least, necessitate increasing the minimum required PHP version as stated at the repository's README and See: (None of which necessarily makes it a bad idea. Declaring return types for all methods is a nice thing to do for modern, clean, well-written PHP code. However, if it were to be done, I would suggest earmarking it for a future new major version of SimplePie, rather than the current major version, in order to remain semver-compliant and to avoid surprising any users with the BC-break). |
We are already targetting PHP 7.2 since SimplePie 1.8.0. |
Whoops.. So we are. Scratch my reply then. My bad. '^.^ Self-reminder: Looking at multiple different repositories/projects/etc at the same time isn't always such a great idea. SimplePie aside, there's another RSS library I was looking at which supported older PHP versions, and I think I got my wires crossed there. Anyway, all good. |
All fixed :°) |
All tests success |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only suggestion is to defer your PR until we are working at release v2. Increasing the major version allows breaking changes. But we are already planning to add return types by introducing new camelCase methods starting with 2.1.0, see #731. |
When submitting a pull request
Run the linter.
Run the tests.
make test
Carefully read your diff before submitting a PR.
Make sure that your changes are very-nearly complete.
In the description, start with an explanation of the change and why you want to make it.
Add a list of changes you've made using task list syntax.
[X]
.[ ]
.Discuss feedback.
If you don't understand something, ask.