Skip to content

Commit

Permalink
Merge pull request flownative#61 from flownative/bugfix/60-wrong-retu…
Browse files Browse the repository at this point in the history
…rn-type-in-S3Storage

Fix return type in S3Storage
  • Loading branch information
kdambekalns authored Nov 16, 2022
2 parents 36ab1c6 + c270618 commit e00ab09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 All @@ -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');
Expand Down

0 comments on commit e00ab09

Please sign in to comment.