]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix the return type of OC_Template->fetchPage() to be string only 22280/head
authorMorris Jobke <hey@morrisjobke.de>
Wed, 19 Aug 2020 14:48:06 +0000 (16:48 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Wed, 19 Aug 2020 14:48:06 +0000 (16:48 +0200)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
build/psalm-baseline.xml
lib/private/legacy/OC_Template.php

index cf9f21d09182317a87f4cad28dc9b31c88f8c30c..efbe348078869642a5f6993c64d42145ac2f6c29 100644 (file)
       <code>OC_User::getUser()</code>
     </InvalidScalarArgument>
   </file>
-  <file src="lib/private/legacy/OC_Template.php">
-    <ImplementedReturnTypeMismatch occurrences="1">
-      <code>boolean|string</code>
-    </ImplementedReturnTypeMismatch>
-  </file>
   <file src="lib/private/legacy/OC_User.php">
     <UndefinedClass occurrences="1">
       <code>\Test\Util\User\Dummy</code>
   <file src="lib/public/AppFramework/Http/Template/PublicTemplateResponse.php">
     <InvalidScalarArgument occurrences="1"/>
   </file>
-  <file src="lib/public/AppFramework/Http/TemplateResponse.php">
-    <InvalidReturnStatement occurrences="1">
-      <code>$template-&gt;fetchPage($this-&gt;params)</code>
-    </InvalidReturnStatement>
-    <InvalidReturnType occurrences="1">
-      <code>string</code>
-    </InvalidReturnType>
-  </file>
   <file src="lib/public/AppFramework/Http/ZipResponse.php">
     <InvalidArrayAccess occurrences="5">
       <code>$resource['size']</code>
index 18a15ad1d4305e7968904fffb4e4ca1ccad5fd85..54c203a3ab61db464457c470da4daa44b4dec627 100644 (file)
@@ -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.