Skip to content

Commit

Permalink
Merge pull request #18 from CharlieEtienne/patch-1
Browse files Browse the repository at this point in the history
Fix #12 : fix wrong return type
  • Loading branch information
joaopaulolndev authored Feb 7, 2025
2 parents faec20e + 8d6b837 commit 0df8be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/Components/PdfViewerField.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function getDiskName(): string
return $this->evaluate($this->disk) ?? config('filament.default_filesystem_disk');
}

public function getFileUrl(?string $state = null): string
public function getFileUrl(?string $state = null): ?string
{
if (empty($state)) {
return $this->evaluate($this->fileUrl);
Expand Down

0 comments on commit 0df8be6

Please sign in to comment.