diff --git a/Classes/S3Storage.php b/Classes/S3Storage.php index 755bd44..5ce30c3 100644 --- a/Classes/S3Storage.php +++ b/Classes/S3Storage.php @@ -303,7 +303,7 @@ public function deleteResource(PersistentResource $resource): bool * @return bool|resource A URI (for example the full path and filename) leading to the resource file or FALSE if it does not exist * @api */ - public function getStreamByResource(PersistentResource $resource): bool + public function getStreamByResource(PersistentResource $resource) { try { return fopen('s3://' . $this->bucketName . '/' . $this->keyPrefix . $resource->getSha1(), 'rb'); @@ -325,7 +325,7 @@ public function getStreamByResource(PersistentResource $resource): bool * @return bool|resource A URI (for example the full path and filename) leading to the resource file or FALSE if it does not exist * @api */ - public function getStreamByResourcePath($relativePath): bool + public function getStreamByResourcePath($relativePath) { try { return fopen('s3://' . $this->bucketName . '/' . $this->keyPrefix . ltrim('/', $relativePath), 'rb');