diff --git a/src/Traits/HasPnsEndpoint.php b/src/Traits/HasPnsEndpoint.php index 8dadbeb..9099cdf 100644 --- a/src/Traits/HasPnsEndpoint.php +++ b/src/Traits/HasPnsEndpoint.php @@ -65,7 +65,7 @@ public function getPnsPhoto(array $paths = [], array $query = []): Response return $this->get($urlParsed, $query); } - public function downloadPnsPhoto(array $paths = [], array $query = [], string $disk = 'local', string $filename = null): string + public function downloadPnsPhoto(array $paths = [], array $query = [], string $disk = 'local', ?string $filename = null): string { $idPns = $paths['idPns']; $filename = $filename ?? "siasn-simpeg/pns/photo/{$idPns}.jpg"; diff --git a/src/Traits/HasUploadEndpoint.php b/src/Traits/HasUploadEndpoint.php index 9bec9bd..92476c6 100644 --- a/src/Traits/HasUploadEndpoint.php +++ b/src/Traits/HasUploadEndpoint.php @@ -16,7 +16,7 @@ public function getDownloadDok(array $paths = [], array $query = []): Response return $this->get($urlParsed, $query); } - public function downloadDownloadDok(array $paths = [], array $query = [], string $disk = 'local', string $filename = null): string + public function downloadDownloadDok(array $paths = [], array $query = [], string $disk = 'local', ?string $filename = null): string { $filePath = $query['filePath']; $filename = $filename ?? "siasn-simpeg/{$filePath}";