Skip to content

Commit

Permalink
Merge pull request #20 from forkgroup/fix-lastModified
Browse files Browse the repository at this point in the history
Fix getMetadata error
  • Loading branch information
overtrue authored Nov 10, 2021
2 parents 1680404 + fe33c1a commit ed50c13
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 @@ -178,9 +178,9 @@ public function getMetadata($path): ?FileAttributes

return new FileAttributes(
$path,
$meta['Content-Length'][0] ?? null,
isset($meta['Content-Length'][0]) ? \strtotime($meta['Content-Length'][0]) : null,
null,
$meta['Last-Modified'][0] ?? null,
isset($meta['Last-Modified'][0]) ? \strtotime($meta['Last-Modified'][0]) : null,
$meta['Content-Type'][0] ?? null,
);
}
Expand Down

0 comments on commit ed50c13

Please sign in to comment.