-
Notifications
You must be signed in to change notification settings - Fork 75
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
Added more ReturnTypeWillChange attributes #117
Added more ReturnTypeWillChange attributes #117
Conversation
1da6015
to
fbb8488
Compare
fbb8488
to
253f880
Compare
LGTM, but the Iterator interface (from PHP) should be respected/enforced here... what about adding the right return type to those methds? WDYT? |
As long as we are supporting php 7.4, this might not be possible, as the php interfaces use mixed as a return type, which is only supported >= 8.0. |
That would be only as a docblock of the interface, right? As PHP 7.4 does not support mixed as a native typehint IIRC. |
You mean changing e. g. |
At the moment, I wouldn't change these occurrences as we have introduced the attribute on other places as well. If dropping 7.4 one time, maybe we will come up with a true change of the return types? But we would complete the >= 8.1 support on one hand and we are able to go forward towards reactivating the existing coverage mechanism with this pr. |
Btw anyone know of a tool that updates the entire codebase with static analysis along a given sign/attribute (method will change notice, return type will change etc)? This is what I miss in php that we have in swift, that there is an automatic migration process in the code base when the programming language updates. |
Does not really belong to this pr, but I'll answer here: Have you tried Rector? |
253f880
to
7c5a588
Compare
7c5a588
to
7a94f7e
Compare
Thanks for merging it :) |
During my work on making the coverage working again, I stumbled upon these. Will try to clean the codebase in small steps to make it compatible before activating the coverage within our ci builds.