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 spin-off from #2608536: Some fixes for 'optional' parameter in core/include. While checking for optional @param directives, it was noted that several existing variable directives in the file core/includes/batch were missing type hints. This issue proposes to rectify that small problem.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2636980-4-type-hint-batch-inc-d8.patch | 2.35 KB | Lars Toomre |
#4 | interdiff-2636980-4-2.txt | 789 bytes | Lars Toomre |
Comments
Comment #2
Lars Toomre CreditAttribution: Lars Toomre as a volunteer commentedAttached is a patch addressing missing type hints in three docblocks.
Comment #3
jhodgdonWe could be pedantic and also change the docs line to say
... in the batch; no return value if not.
or something like that?
The rest of the patch looks good, thanks!
I think I'll set it to Needs Work to fix that docs line because it looks kind of funny to me, to say it is true|null (which is accurate) and then not say that in the docs.
Comment #4
Lars Toomre CreditAttribution: Lars Toomre as a volunteer commentedI think that was a good suggestion @jhodgdon in #3. I worded the thought slightly differently. Attached is an interdiff and updated patch incorporating your suggestion from #3.
Comment #5
jhodgdonThanks! That looks good to me.
Comment #6
alexpottCommitted d23534f and pushed to 8.0.x and 8.1.x. Thanks!