diff options
author | Richard de Boer <github@tubul.net> | 2021-04-10 15:49:13 +0300 |
---|---|---|
committer | Richard de Boer <git@tubul.net> | 2021-05-29 15:14:52 +0300 |
commit | f23d057ad92d77cbfeda9eed65a4874dc570761e (patch) | |
tree | 1e371cfb577d453850bf6df57ace3ca84be9f5af /core/Controller | |
parent | 697b22a5947e08a92ecd3576d5ea8515433d740b (diff) |
Fix functions taking optional parameters before required ones
PHP 8 shows deprecation warnings about this, see #25806
Removes the "default" values, as they actually are required parameters anyway.
Signed-off-by: Richard de Boer <git@tubul.net>
Diffstat (limited to 'core/Controller')
-rw-r--r-- | core/Controller/PreviewController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Controller/PreviewController.php b/core/Controller/PreviewController.php index 0b762094086..d46ecc6d157 100644 --- a/core/Controller/PreviewController.php +++ b/core/Controller/PreviewController.php @@ -156,8 +156,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); |