Skip to content

Commit

Permalink
Merge pull request #37376 from owncloud/adjust-method-signatures-in-E…
Browse files Browse the repository at this point in the history
…ncryption.php

adjust method signatures in Encryption.php
  • Loading branch information
phil-davis authored May 12, 2020
2 parents f1dfb39 + c0f238c commit a91573b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Files/Stream/Encryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit a91573b

Please sign in to comment.