- 
                Notifications
    You must be signed in to change notification settings 
- Fork 11.6k
[13.x] chore: remove redundant phpdocs #56775
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
base: master
Are you sure you want to change the base?
Conversation
| I'm tired, boss | 
0a19556    to
    83c0f81      
    Compare
  
    | Full strict typing in v13! 🤣 | 
| 
 These are not redundant/superfluous, so Pint did not remove any of these. If you're referring to adding more native types then yes, we should keep any tags that are not redundant and add information that can't be expressed by native types alone like array shapes, generics, conditional returns, etc. | 
| I'm not doing any of this on 12.x I don't think. | 
| I can target  | 
| 
 @calebdw I am pretty sure you are aware, but in case your are not here a friendly reminder that Taylor doesn't check replies in drafts. I guess he expects you to target master, though. Maybe you want to do that? | 
83c0f81    to
    e66ac17      
    Compare
  
    b148efd    to
    95e65b2      
    Compare
  
    | I've targeted  | 
95e65b2    to
    e9a9d07      
    Compare
  
    | @calebdw I'm generally fine with this PR, but I think would prefer to merge it closer to 13.x actually release date. That way stuff we merge from 12.x -> 13.x from now until then can keep the 12.x style, and then we'll run / update this one final time right before 13.x release. Does that sound ok? If so, I am drafting this but have it personally noted in my internal todo list to revisit before launch. | 
| Sounds good! | 

Hello!
Motivation
The contribution guidelines say to remove redundant tags that provide no additional information over native php types (note that this does not include tags that provide additional information such as descriptions or generics):
However, as can be seen by this PR, there are over 6,500 redundant tags in this codebase that are not needed and can be cleaned up. This PR adds the
no_superflous_phpdoc_tagsrule to the pint config to help enforce the contribution guidelines and clean up the redundant tags.Removing redundant tags:
Review
Here's a breakdown of the commits:
eventhelper so that the phpdocs are not detected as unused and removedThanks!