This is a sub-issue of #1800046: [META] Add missing type hinting to core docblocks, fix Drupal.Commenting.FunctionComment.Missing* focused on correctly adding @param and @return type hinting to the Path module.
Documentation patches that include type hinting are time consuming to both review and commit because one must dig into the actual code to confirm that the type hints are both correct and complete. Hence, please be patient and try to limit type hint patches to covering only a limited number of docblocks (10-15 as a guess).
How To Review This Issue
- Attempt to apply the patch to see if it needs a reroll.
- Use the phpcs one-liner to evaluate whether all the relevant standards errors have been resolved: https://gist.github.com/paul-m/227822ac7723b0e90647
- Look at each change and determine whether the type hint is correct.
Related sprint issues:
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1811874_2.patch | 446 bytes | mile23 |
Comments
Comment #0.0
lars toomre commentedUpdated reference to API docs clean-up sub-issue.
Comment #1
mile23Comment #2
mile23And the teeniest patch of all.
Comment #3
mile23Comment #4
mile23Still applies, still fixes all the type hinting errors in the Path module, according to phpcs, and it's ONLY ONE LINE. :-)
Comment #5
mile23Still applies.
Comment #6
mile23Comment #7
rishikant05 commentedIts working fine.
Comment #8
webchickCommitted and pushed to 8.0.x. Thanks!