-
-
Notifications
You must be signed in to change notification settings - Fork 74
QA: Add type declarations and refine psalm types #202
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
Conversation
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.
Thanks for the patch @ADmad but there are a few BC breaks that need reverting
13a55f3 to
d523243
Compare
|
All these are private properties, shouldn't it be safe to change them? Constructors can be changed with impunity, changing the type shouldn't cause any error even if the constructor was overridden in a child class. |
|
The change in JsonResponse constructor is fine IMO, but it is a technical BC break, just because PHP lets us change the signature of __construct, it's still part of the public API. The private property changes to the traits are indeed a BC break if users have re-implemented a property without a type hint: https://3v4l.org/aaQTo - if they were class properties, it'd be fine, so very little of this can go into a 3.x release |
|
Thank you for the trait example, I'll revert the related changes. I am still not convinced the constructor change is a BC break :) |
5244e00 to
88ac87d
Compare
|
I don't think the test failures are related to the changes in this PR. |
|
No, but whatever they are, they'll need to be addressed separately 🤔 |
|
See #205 |
|
That's not a "me" problem, so I'll let you guys tackle that :) |
|
Ping |
Please could you explain what you expect? |
|
@froschdesign I expect the PR to be merged :) I believe I have made the changes as per the feedback. The test failures are unrelated to my changes. |
Thanks for you response but a fix for the problem is needed before something can merge here. And if another pull request is required beforehand, this one remains open. |
|
Okay, thank you for the explanation. |
|
With the base branch for the merge being updated CI is green now. |
|
Please do a rebase instead of merge to update |
Signed-off-by: ADmad <[email protected]>
Done |
Description
Some properties and methods were missing type declarations.