From 8a547dab209b8f8359169e14776c5bef5ba89b10 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 9 Jul 2024 13:35:57 +0100 Subject: [PATCH] Fixed type constraint Signed-off-by: snipe --- .../Controllers/Accessories/AccessoriesFilesController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Accessories/AccessoriesFilesController.php b/app/Http/Controllers/Accessories/AccessoriesFilesController.php index baf09c66b0..a7eec8a057 100644 --- a/app/Http/Controllers/Accessories/AccessoriesFilesController.php +++ b/app/Http/Controllers/Accessories/AccessoriesFilesController.php @@ -12,6 +12,7 @@ use Illuminate\Support\Facades\Log; use \Illuminate\Contracts\View\View; use \Illuminate\Http\RedirectResponse; use Illuminate\Support\Facades\Response; +use Symfony\Component\HttpFoundation\BinaryFileResponse; class AccessoriesFilesController extends Controller { @@ -104,7 +105,7 @@ class AccessoriesFilesController extends Controller * @param int $accessoryId * @param int $fileId */ - public function show($accessoryId = null, $fileId = null, $download = true) : View | RedirectResponse | Response + public function show($accessoryId = null, $fileId = null, $download = true) : View | RedirectResponse | Response | BinaryFileResponse { Log::debug('Private filesystem is: '.config('filesystems.default'));