mirror of
https://github.com/flarum/core.git
synced 2025-07-16 22:31:18 +02:00
Clarify that request
argument of render
callbacks for Formatter
must be either nullable or omitted
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user