Fix the return type of OC_Template->fetchPage() to be string only

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2020-08-19 16:48:06 +02:00
parent a9f22ac7b1
commit e93bf71369
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
2 changed files with 1 additions and 14 deletions

View File

@ -6069,11 +6069,6 @@
<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>
@ -6155,14 +6150,6 @@
<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>

View 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.