Factor out logic that tracks mapping inheritance#10397
Factor out logic that tracks mapping inheritance#10397derrabus merged 1 commit intodoctrine:2.15.xfrom
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. |
greg0ire
left a comment
There was a problem hiding this comment.
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 |
1612744 to
b83eeaf
Compare
|
Thank you! |
While working on #10396, I noticed the three kinds of mapping information track
inheritedanddeclaredin 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.