Skip to content

Commit 721437d

Browse files
Added type declarations
1 parent 0d00cd5 commit 721437d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Drivers/AwsS3v2Adapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class AwsS3v2Adapter extends AwsS3Adapter
2424
* @param array $options
2525
* @return string
2626
*/
27-
public function getTemporaryUrl(string $path, DateTimeInterface $expiration, array $options = [])
27+
public function getTemporaryUrl(string $path, DateTimeInterface $expiration, array $options = []): string
2828
{
2929
return (string) $this->getClient()->getObjectUrl(
3030
$this->getBucket(),

src/Drivers/AwsS3v2FilesystemCompatible.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ trait AwsS3v2FilesystemCompatible
1616
/**
1717
* Trả về AWS S3v2 URL theo đường dẫn chỉ định.
1818
*
19-
* @param $path
19+
* @param string $path
2020
* @return string
2121
*/
22-
public function getUrl($path): string
22+
public function getUrl(string $path): string
2323
{
2424
$adapter = $this->getAdapter();
2525

0 commit comments

Comments
 (0)