Skip to content

Commit 5d5a8cd

Browse files
committed
fixed: fixed Laravel temporary URL issue overtrue/laravel-filesystem-cos#18
1 parent 59de3a7 commit 5d5a8cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CosAdapter.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ public function getUrl(string $path): string
342342

343343
public function getTemporaryUrl(string $path, $expiration)
344344
{
345-
if ($expiresAt instanceof \DateTimeInterface) {
346-
$expiration = $expiresAt->getTimestamp();
345+
if ($expiration instanceof \DateTimeInterface) {
346+
$expiration = $expiration->getTimestamp();
347347
}
348348

349349
try {

0 commit comments

Comments
 (0)