Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2021-06-08 00:30:59 +0300
committerGitHub <noreply@github.com>2021-06-08 00:30:59 +0300
commit2ae60b42ab87152d8b918aa289c974c42d267113 (patch)
tree71e87e066471b6e9e491470a60d666cce5771798 /core/Controller
parentae4907b6c95b7ac5d36ef358048c7acafd517c07 (diff)
parent7990f95558ac2b7fac3b9f77dcbdc3c74b05785b (diff)
Merge pull request #26494 from rigrig/fix-php8-deprecations
Fix some php 8 warnings
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/PreviewController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Controller/PreviewController.php b/core/Controller/PreviewController.php
index e1bfa01b238..1224ea39877 100644
--- a/core/Controller/PreviewController.php
+++ b/core/Controller/PreviewController.php
@@ -155,8 +155,8 @@ class PreviewController extends Controller {
Node $node,
int $x,
int $y,
- bool $a = false,
- bool $forceIcon = true,
+ bool $a,
+ bool $forceIcon,
string $mode) : Http\Response {
if (!($node instanceof File) || (!$forceIcon && !$this->preview->isAvailable($node))) {
return new DataResponse([], Http::STATUS_NOT_FOUND);