Skip to content

Commit

Permalink
Merge pull request #9 from kmoconnect/fix-null-return-getFileUrl
Browse files Browse the repository at this point in the history
Update PdfViewerEntry.php
  • Loading branch information
joaopaulolndev authored Sep 26, 2024
2 parents 7dcbf2f + 077b4ca commit d89b5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Infolists/Components/PdfViewerEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function fileUrl(string|Closure $fileUrl): self
return $this;
}

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

0 comments on commit d89b5b9

Please sign in to comment.