Skip to content

Commit

Permalink
Merge pull request #35400 from nextcloud/fix/remove-unused-dynamic-va…
Browse files Browse the repository at this point in the history
…r-in-files_sharing

Fix name of dymanic var $mountOptions to fix PHP 8.2 compatibility
  • Loading branch information
come-nc authored Dec 5, 2022
2 parents 8c59ba4 + 3bcb4fc commit f95aa23
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/files_sharing/lib/SharedStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,13 @@
use OCP\Files\NotFoundException;
use OCP\Files\Storage\IDisableEncryptionStorage;
use OCP\Files\Storage\IStorage;
use OCP\IUserManager;
use OCP\Lock\ILockingProvider;
use OCP\Share\IShare;

/**
* Convert target path to source path and pass the function call to the correct storage provider
*/
class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedStorage, IDisableEncryptionStorage {

/** @var \OCP\Share\IShare */
private $superShare;

Expand Down Expand Up @@ -90,7 +88,7 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
/** @var IStorage */
private $nonMaskedStorage;

private $options;
private array $mountOptions = [];

/** @var boolean */
private $sharingDisabledForUser;
Expand Down Expand Up @@ -553,7 +551,11 @@ public function file_put_contents($path, $data) {
return parent::file_put_contents($path, $data);
}

/**
* @return void
*/
public function setMountOptions(array $options) {
/* Note: This value is never read */
$this->mountOptions = $options;
}

Expand Down

0 comments on commit f95aa23

Please sign in to comment.