Skip to content

Commit dde7b7c

Browse files
authored
Merge pull request #57859 from nextcloud/docs/valid-render-as-for-template-response
docs: annotate valid renderAs values
2 parents 8d08553 + bf5c11a commit dde7b7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/workflowengine/lib/Settings/ASettings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function getForm(): TemplateResponse {
7777
$this->urlGenerator->linkToDocs('admin-workflowengine')
7878
);
7979

80-
return new TemplateResponse(Application::APP_ID, 'settings', [], 'blank');
80+
return new TemplateResponse(Application::APP_ID, 'settings', [], TemplateResponse::RENDER_AS_BLANK);
8181
}
8282

8383
/**

lib/public/AppFramework/Http/TemplateResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ class TemplateResponse extends Response {
7474
protected $appName;
7575

7676
/**
77-
* constructor of TemplateResponse
7877
* @param string $appName the name of the app to load the template from
7978
* @param string $templateName the name of the template
8079
* @param array $params an array of parameters which should be passed to the
8180
* template
8281
* @param string $renderAs how the page should be rendered, defaults to user
82+
* @psalm-param TemplateResponse::RENDER_AS_* $renderAs
8383
* @param S $status
8484
* @param H $headers
8585
* @since 6.0.0 - parameters $params and $renderAs were added in 7.0.0

0 commit comments

Comments
 (0)