Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 Forum 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 (20-25 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 |
---|---|---|---|
#6 | add-missing-type-hinting-to-forum-module-docblocks-1811334-6.patch | 2.16 KB | deepakaryan1988 |
#2 | 1811334_2.patch | 2.92 KB | Mile23 |
Comments
Comment #1
Mile23Comment #2
Mile23Le Patch.
Comment #3
Mile23Patch still applies, phpcs tells me no missing type hinting.
Comment #4
Mile23Still applies.
Comment #5
Mile23Comment #6
deepakaryan1988Patch#2 is not applying so I am re-rolling that patch.
Comment #7
yogen.prasad CreditAttribution: yogen.prasad commentedWorking fine.
Comment #9
webchickCommitted and pushed to 8.0.x. Thanks!