From 55c5104bceed9c124193011996b85f5fbb32e0e9 Mon Sep 17 00:00:00 2001 From: rudolfkrupa Date: Wed, 5 Jan 2022 12:05:52 +0100 Subject: [PATCH] fix missing tryFopen in UploadCommandHandler --- src/handlers/UploadCommandHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);