1
0
mirror of https://github.com/flarum/core.git synced 2025-07-17 14:51:19 +02:00

Clarify that request argument of render callbacks for Formatter must be either nullable or omitted

This commit is contained in:
Alexander Skvortsov
2020-12-14 17:20:35 -05:00
parent 8e25bcb68f
commit 0c61fcc61c

View File

@@ -68,7 +68,7 @@ class Formatter implements ExtenderInterface, LifecycleInterface
* - \s9e\TextFormatter\Rendered $renderer
* - mixed $context
* - string $xml: The xml to be rendered.
* - ServerRequestInterface $request
* - ServerRequestInterface $request. This argument MUST either be nullable, or omitted entirely.
*
* The callback should return:
* - string $xml: The xml to be rendered.