Type constrains one more time - who thought this was a good idea?

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-09 19:50:58 +01:00
parent 34e1ff88db
commit 1a1ccd6bdc

View file

@ -7,6 +7,7 @@ use Illuminate\Http\RedirectResponse;
use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Storage; use Illuminate\Support\Facades\Storage;
use \Illuminate\Http\Response; use \Illuminate\Http\Response;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
class ActionlogController extends Controller class ActionlogController extends Controller
{ {
public function displaySig($filename) : RedirectResponse | Response | bool public function displaySig($filename) : RedirectResponse | Response | bool
@ -36,7 +37,7 @@ class ActionlogController extends Controller
} }
} }
public function getStoredEula($filename) : Response public function getStoredEula($filename) : Response | BinaryFileResponse
{ {
$this->authorize('view', \App\Models\Asset::class); $this->authorize('view', \App\Models\Asset::class);
$file = config('app.private_uploads').'/eula-pdfs/'.$filename; $file = config('app.private_uploads').'/eula-pdfs/'.$filename;