Active
Project:
Drupal core
Version:
main
Component:
batch system
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Nov 2026 at 10:38 UTC
Updated:
18 Nov 2026 at 10:38 UTC
Jump to comment: Most recent
_batch_page() doesn't document its return type.
This makes it harder to debug issues like #3636610: Error when using update.php: TypeError: Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer::renderBarePage(): Argument #1 ($content) must be of type array, false given, and could even help prevent them in the first place with PHPStan.
Add a @return docs tag.
Since this function is not something that can be overridden, we can add a return type too.
Comments