From a37faae566b218d46228ccb2cceb4d63d19c3402 Mon Sep 17 00:00:00 2001 From: jtfnetoo Date: Wed, 1 Feb 2023 15:08:30 -0400 Subject: [PATCH] Tornando filename opcional --- .../Services/Contracts/JasperServerRequestServiceContract.php | 2 +- src/app/Services/JasperServerRequestService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/Services/Contracts/JasperServerRequestServiceContract.php b/src/app/Services/Contracts/JasperServerRequestServiceContract.php index 38e30b6..74922d3 100644 --- a/src/app/Services/Contracts/JasperServerRequestServiceContract.php +++ b/src/app/Services/Contracts/JasperServerRequestServiceContract.php @@ -93,5 +93,5 @@ interface JasperServerRequestServiceContract * @param string|null $filename * @return void */ - public function download(?string $filename): void; + public function download(?string $filename = null): void; } diff --git a/src/app/Services/JasperServerRequestService.php b/src/app/Services/JasperServerRequestService.php index bc784f2..e60b11f 100644 --- a/src/app/Services/JasperServerRequestService.php +++ b/src/app/Services/JasperServerRequestService.php @@ -243,7 +243,7 @@ class JasperServerRequestService implements JasperServerRequestServiceContract * @param string|null $filename * @return void */ - public function download(?string $filename): void + public function download(?string $filename = null): void { if (in_array($this->format, ReportFormatEnum::downloadable())) { $this->setContentDisposition(ContentDispositionEnum::ATTACHMENT);