-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Factor out logic that tracks mapping inheritance #10397
Conversation
76f1eea
to
6e4f8e0
Compare
Would appreciate any help how to fix static analysis type hinting here |
I've tried looking into it, and it's a nightmare. I think the right course of action would be to experiment with DTOs on 3.0.x. That would allow us to determine where to use which type hint, and whether any fields are missing in the type aliases defined at the beginning of |
Probably thats because introducing a tool like Psalm into a huge legacy codebase is not fun, eh? |
How do I add a phpcs error to the baseline? |
Yeah it's kind of a pain, thankfully there is a baseline. |
I'd rather we add Psalm issues to the baseline, so I'd make phpcs happy, then ignore Psalm. |
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.
Please squash everything into one commit that passes the build.
02963eb
to
a840f49
Compare
🟢 , without updating the baseline file 🥳 |
Nice job! |
I think this should target 2.15.x (it's not a bugfix) |
a840f49
to
85fd41e
Compare
Rebased onto 2.15.x |
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.
👍
1612744
to
b83eeaf
Compare
Thank you! |
While working on #10396, I noticed the three kinds of mapping information track
inherited
anddeclared
in the same way.This PR suggests move the common code into a dedicated method, making it easier to see and understand where the information comes from.