]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix overriding function from 3rdparty warning
authorRoeland Jago Douma <rullzer@owncloud.com>
Tue, 24 Nov 2015 12:25:27 +0000 (13:25 +0100)
committerRoeland Jago Douma <rullzer@owncloud.com>
Tue, 24 Nov 2015 12:25:50 +0000 (13:25 +0100)
Fixes #20648

lib/private/files/stream/encryption.php

index 4c328993ef77530d36ac0c8d27a3352cbd466f11..585a697c5d1a25c4b1e62f7948d6e80393be20f1 100644 (file)
@@ -167,7 +167,7 @@ class Encryption extends Wrapper {
                        )
                ));
 
-               return self::wrapSource($source, $mode, $context, 'ocencryption', $wrapper);
+               return self::wrapSource($source, $context, 'ocencryption', $wrapper, $mode);
        }
 
        /**
@@ -181,7 +181,7 @@ class Encryption extends Wrapper {
         * @return resource
         * @throws \BadMethodCallException
         */
-       protected static function wrapSource($source, $mode, $context, $protocol, $class) {
+       protected static function wrapSource($source, $context, $protocol, $class, $mode = 'r+') {
                try {
                        stream_wrapper_register($protocol, $class);
                        if (@rewinddir($source) === false) {