From 2cb8277ffb99e2b590c49c8bc2a9c8e11997ab1b Mon Sep 17 00:00:00 2001 From: Kurt Thiemann Date: Fri, 7 Feb 2025 14:31:52 +0100 Subject: [PATCH] fix warning --- src/Psr7/Message/UploadedFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psr7/Message/UploadedFile.php b/src/Psr7/Message/UploadedFile.php index 22e9237..1012143 100644 --- a/src/Psr7/Message/UploadedFile.php +++ b/src/Psr7/Message/UploadedFile.php @@ -62,7 +62,7 @@ public function moveTo(string $targetPath): void $this->stream->rewind(); } - $target = fopen($targetPath, 'wb'); + $target = @fopen($targetPath, 'wb'); if ($target === false) { throw new RuntimeException('Target path could not be opened'); }