diff --git a/src/handlers/UploadCommandHandler.php b/src/handlers/UploadCommandHandler.php index 77606a5..b9ee67f 100755 --- a/src/handlers/UploadCommandHandler.php +++ b/src/handlers/UploadCommandHandler.php @@ -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);