-
Notifications
You must be signed in to change notification settings - Fork 11.5k
[12.x] Clean up redundant type hints in docblocks #56690
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
[12.x] Clean up redundant type hints in docblocks #56690
Conversation
gotta say this feels like a step in the wrong direction.
I had another point, but as I dug into it, it looks like there've been some commits/reversions in the past couple of weeks regarding typing, so I'm not sure if my point holds anymore. All in all, what I'd like to see is us move more towards explicit typing, even if that means somewhat long union types. I also don't mind the What I'd really love to see is actual strict parameter and return typing, but that's a discussion for another day... |
Thanks for your feedback and for the time you took to review it @browner12
I think it’s because
I completely agree, and I’m also strict about this when I develop something. However, PRs in open source are a different matter, and in this case we also have the |
unless I'm mistaken, |
It’s an interesting point to examine. However, I think a collection is an instance of the |
I would assume, |
@amirhshokri could please help me to understand why this code is not reachable? if I'll remove |
I think this issue is related to PHPStorm. Based on the current pattern, if we have the following code: throw new Exception;
// another logic PHPStorm considers |
continuation of #56411