Skip to content

Commit

Permalink
Fix return type
Browse files Browse the repository at this point in the history
It may be a boolean or a resource
  • Loading branch information
Christoph Lehmann committed Feb 4, 2022
1 parent b78d6da commit 5bfcc7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/S3Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 5bfcc7f

Please sign in to comment.