aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller/PreviewController.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2021-06-07 23:30:59 +0200
committerGitHub <noreply@github.com>2021-06-07 23:30:59 +0200
commit2ae60b42ab87152d8b918aa289c974c42d267113 (patch)
tree71e87e066471b6e9e491470a60d666cce5771798 /core/Controller/PreviewController.php
parentae4907b6c95b7ac5d36ef358048c7acafd517c07 (diff)
parent7990f95558ac2b7fac3b9f77dcbdc3c74b05785b (diff)
downloadnextcloud-server-2ae60b42ab87152d8b918aa289c974c42d267113.tar.gz
nextcloud-server-2ae60b42ab87152d8b918aa289c974c42d267113.zip
Merge pull request #26494 from rigrig/fix-php8-deprecations
Fix some php 8 warnings
Diffstat (limited to 'core/Controller/PreviewController.php')
-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);