From e93bf713690047da6e48f882848c7f1ba832db4e Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 19 Aug 2020 16:48:06 +0200 Subject: [PATCH] Fix the return type of OC_Template->fetchPage() to be string only Signed-off-by: Morris Jobke --- build/psalm-baseline.xml | 13 ------------- lib/private/legacy/OC_Template.php | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index cf9f21d0918..efbe3480788 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -6069,11 +6069,6 @@ OC_User::getUser() - - - boolean|string - - \Test\Util\User\Dummy @@ -6155,14 +6150,6 @@ - - - $template->fetchPage($this->params) - - - string - - $resource['size'] diff --git a/lib/private/legacy/OC_Template.php b/lib/private/legacy/OC_Template.php index 18a15ad1d43..54c203a3ab6 100644 --- a/lib/private/legacy/OC_Template.php +++ b/lib/private/legacy/OC_Template.php @@ -171,7 +171,7 @@ class OC_Template extends \OC\Template\Base { /** * Process the template - * @return boolean|string + * @return string * * This function process the template. If $this->renderAs is set, it * will produce a full page. -- 2.39.5