-
Notifications
You must be signed in to change notification settings - Fork 78
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
The readStream
method of a storage driver is likely expected to return a resource
type, but in this package, it is set to bool
.
cloudinary-laravel/src/CloudinaryAdapter.php
Line 291 in 434bb1f
public function readStream(string $path): bool |
Upon inspecting its return type, it appears that a boolean value is not returned.
cloudinary-laravel/src/CloudinaryAdapter.php
Lines 291 to 296 in 434bb1f
public function readStream(string $path): bool | |
{ | |
$resource = (array)$this->adminApi()->asset($this->preparePublicId($path)); | |
return fopen($resource['secure_url'], 'rb'); | |
} |
I’m not sure if a fix is in the pipeline.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working