From d140a842fa92067aaec5553cc8fbd98e5943f2d8 Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 24 Aug 2020 13:53:07 +0100 Subject: [PATCH] RemoteFilesystem: avoid warning when setting max file size --- src/Composer/Util/RemoteFilesystem.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index 676438c92..9ed465355 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/src/Composer/Util/RemoteFilesystem.php @@ -248,6 +248,7 @@ class RemoteFilesystem $maxFileSize = null; if (isset($options['max_file_size'])) { $maxFileSize = $options['max_file_size']; + unset($options['max_file_size']); } $ctx = StreamContextFactory::getContext($fileUrl, $options, array('notification' => array($this, 'callbackGet')));