From 46f87f6e46e89572476e238aebac0c483199efb0 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Tue, 27 Jan 2026 22:51:17 +0100 Subject: [PATCH 1/2] docs: annotate valid renderAs values Signed-off-by: Daniel Kesselberg --- lib/public/AppFramework/Http/TemplateResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/public/AppFramework/Http/TemplateResponse.php b/lib/public/AppFramework/Http/TemplateResponse.php index af37a1a2313..7e76c7a6e96 100644 --- a/lib/public/AppFramework/Http/TemplateResponse.php +++ b/lib/public/AppFramework/Http/TemplateResponse.php @@ -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 From bf5c11a8fac755cd6164d5d03f7e35924ea2b6c3 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Tue, 27 Jan 2026 22:57:24 +0100 Subject: [PATCH 2/2] fix(workflowengine): use constant to render template Signed-off-by: Daniel Kesselberg --- apps/workflowengine/lib/Settings/ASettings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/workflowengine/lib/Settings/ASettings.php b/apps/workflowengine/lib/Settings/ASettings.php index ffa94911364..354e05b5f6e 100644 --- a/apps/workflowengine/lib/Settings/ASettings.php +++ b/apps/workflowengine/lib/Settings/ASettings.php @@ -77,7 +77,7 @@ abstract class ASettings implements ISettings { $this->urlGenerator->linkToDocs('admin-workflowengine') ); - return new TemplateResponse(Application::APP_ID, 'settings', [], 'blank'); + return new TemplateResponse(Application::APP_ID, 'settings', [], TemplateResponse::RENDER_AS_BLANK); } /**