From c0f238c8a0b4c98ef050f9c71c92795b639680f5 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 12 May 2020 10:47:04 +0545 Subject: [PATCH] adjust method signatures in Encryption.php --- lib/private/Files/Stream/Encryption.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Files/Stream/Encryption.php b/lib/private/Files/Stream/Encryption.php index 2de0d011d93e..d71a3081783f 100644 --- a/lib/private/Files/Stream/Encryption.php +++ b/lib/private/Files/Stream/Encryption.php @@ -192,7 +192,7 @@ public static function wrap($source, $internalPath, $fullPath, array $header, * @return resource * @throws \BadMethodCallException */ - protected static function wrapSource($source, $context, $protocol, $class, $mode = 'r+') { + protected static function wrapSource($source, $context = [], $protocol = null, $class = null, $mode = 'r+') { try { \stream_wrapper_register($protocol, $class); if (@\rewinddir($source) === false) { @@ -215,7 +215,7 @@ protected static function wrapSource($source, $context, $protocol, $class, $mode * @return array * @throws \BadMethodCallException */ - protected function loadContext($name) { + protected function loadContext($name = null) { $context = parent::loadContext($name); foreach ($this->expectedContextProperties as $property) {