docs: annotate valid renderAs values

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2026-01-27 22:51:17 +01:00
parent 7da87dcbfd
commit 46f87f6e46
No known key found for this signature in database
GPG key ID: 4A81C29F63464E8F

View file

@ -74,12 +74,12 @@ class TemplateResponse extends Response {
protected $appName;
/**
* constructor of TemplateResponse
* @param string $appName the name of the app to load the template from
* @param string $templateName the name of the template
* @param array $params an array of parameters which should be passed to the
* template
* @param string $renderAs how the page should be rendered, defaults to user
* @psalm-param TemplateResponse::RENDER_AS_* $renderAs
* @param S $status
* @param H $headers
* @since 6.0.0 - parameters $params and $renderAs were added in 7.0.0