From: Morris Jobke Date: Wed, 19 Aug 2020 14:48:06 +0000 (+0200) Subject: Fix the return type of OC_Template->fetchPage() to be string only X-Git-Tag: v20.0.0beta1~40^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e93bf713690047da6e48f882848c7f1ba832db4e;p=nextcloud-server.git Fix the return type of OC_Template->fetchPage() to be string only Signed-off-by: Morris Jobke --- 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.