diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-04-04 12:50:54 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-04-04 12:50:54 +0200 |
commit | 73e6eea57e0454a74b6b461e15d2c4fac61ed524 (patch) | |
tree | 3e06367ce3e0f2de7c0b5953819c499349ad7a39 /lib | |
parent | 37233471b6698f798c9f0b9bf0286c4d9c342204 (diff) | |
download | nextcloud-server-73e6eea57e0454a74b6b461e15d2c4fac61ed524.tar.gz nextcloud-server-73e6eea57e0454a74b6b461e15d2c4fac61ed524.zip |
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Mount/Manager.php | 4 | ||||
-rw-r--r-- | lib/public/Files/Mount/IMountManager.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Files/Mount/Manager.php b/lib/private/Files/Mount/Manager.php index f27dfaacc8b..019dda03a40 100644 --- a/lib/private/Files/Mount/Manager.php +++ b/lib/private/Files/Mount/Manager.php @@ -76,9 +76,9 @@ class Manager implements IMountManager { * Find the mount for $path * * @param string $path - * @return MountPoint + * @return MountPoint|null */ - public function find(string $path): IMountPoint { + public function find(string $path) { \OC_Util::setupFS(); $path = $this->formatPath($path); if (isset($this->mounts[$path])) { diff --git a/lib/public/Files/Mount/IMountManager.php b/lib/public/Files/Mount/IMountManager.php index da40419d9e1..b9ec85bc1d4 100644 --- a/lib/public/Files/Mount/IMountManager.php +++ b/lib/public/Files/Mount/IMountManager.php @@ -61,10 +61,10 @@ interface IMountManager { * Find the mount for $path * * @param string $path - * @return \OCP\Files\Mount\IMountPoint + * @return \OCP\Files\Mount\IMountPoint|null * @since 8.2.0 */ - public function find(string $path): IMountPoint; + public function find(string $path); /** * Find all mounts in $path |