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 Search 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 |
---|---|---|---|
#7 | add-missing-type-hinting-to-Search-module-docblocks-1811882-#7.patch | 2.8 KB | deepakaryan1988 |
#2 | 1811882_2.patch | 5.98 KB | Mile23 |
Comments
Comment #1
Mile23Comment #2
Mile23Patch.
Comment #3
Mile23Still applies, still shows no missing docblock @param stuff in phpcs.
Comment #4
Mile23Still applies.
Comment #5
Mile23Comment #6
deepakaryan1988Comment #7
deepakaryan1988Patch #2 is not working.
So I am re-rolling that patch again.
Comment #8
yogen.prasad CreditAttribution: yogen.prasad commentedWorking fine
Comment #9
webchickCommitted and pushed to 8.0.x. Thanks!