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);