From 491a0f3959fe945aad11fe4dd02216b0662b81d1 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 9 Jul 2024 11:47:53 +0100 Subject: [PATCH] One more typehint Signed-off-by: snipe --- app/Http/Controllers/SettingsController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 1f03a709c8..c5c36d7b81 100755 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -32,6 +32,7 @@ use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\URL; use Illuminate\Support\Facades\Validator; +use Symfony\Component\HttpFoundation\BinaryFileResponse; /** * This controller handles all actions related to Settings for @@ -1116,7 +1117,7 @@ class SettingsController extends Controller * @author [A. Gianotto] [] * @since [v1.8] */ - public function downloadFile($filename = null) : RedirectResponse + public function downloadFile($filename = null) : RedirectResponse | BinaryFileResponse { $path = 'app/backups';