Skip to content

Commit

Permalink
fixed: fixed Laravel temporary URL issue overtrue/laravel-filesystem-…
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Sep 19, 2024
1 parent 59de3a7 commit 5d5a8cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CosAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ public function getUrl(string $path): string

public function getTemporaryUrl(string $path, $expiration)
{
if ($expiresAt instanceof \DateTimeInterface) {
$expiration = $expiresAt->getTimestamp();
if ($expiration instanceof \DateTimeInterface) {
$expiration = $expiration->getTimestamp();
}

try {
Expand Down

0 comments on commit 5d5a8cd

Please sign in to comment.