Skip to content

Commit

Permalink
fix missing tryFopen in UploadCommandHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfkrupa authored Jan 5, 2022
1 parent 099a561 commit 55c5104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/UploadCommandHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function handle(UploadCommand $command)
protected function sourceToStream($source): StreamInterface
{
if (is_string($source)) {
$source = Psr7\try_fopen($source, 'r+');
$source = Psr7\Utils::tryFopen($source, 'r+');
}

return Psr7\Utils::streamFor($source);
Expand Down

0 comments on commit 55c5104

Please sign in to comment.