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 8f2e76d966
commit 6ed4442ea6

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.