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 Locale 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 |
|---|---|---|---|
| #9 | 1807062_9.patch | 2.25 KB | mile23 |
| #5 | 1807062_5.patch | 3.66 KB | mile23 |
| #2 | 1807062_2.patch | 18.13 KB | mile23 |
Comments
Comment #1
mile23Comment #2
mile23Behold.
Comment #3
mile23Note that for
locale_translation_check_projects()I filed this issue: #2411767: locale_translation_check_projects() should return batch or NULL.Comment #5
mile23Ignore previous patch. This one only changes docblocks, and so therefore this is a documentation issue.
Comment #6
mile23Still applies.
Comment #7
mile23Still applies.
Comment #8
mile23Comment #9
mile23Reroll of #5.
Comment #15
sk33lz commentedPatch #9 looks good and still applies against 8.6.x.
Comment #16
mile23Let's re-run the test against 8.6.x to see if it fails again...
Comment #17
alexpottCommitted to 8.5.x as this is docs only.
Committed and pushed 052a2b369f to 8.6.x and eab1b2fe6b to 8.5.x. Thanks!