aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-03-19 18:13:59 +0100
committerRobin Appelman <robin@icewind.nl>2021-03-24 14:30:29 +0100
commitf842608c95a1a38ef59d7951380b73c1e4f0c2a3 (patch)
tree0eb5da17bc9d1d5449116fbb1791d3274873f8a1
parent4406092fd680dc26001a78cdcf179aca3dc0b235 (diff)
downloadnextcloud-server-f842608c95a1a38ef59d7951380b73c1e4f0c2a3.tar.gz
nextcloud-server-f842608c95a1a38ef59d7951380b73c1e4f0c2a3.zip
getRelativePath can return null
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--lib/private/Files/Node/Folder.php2
-rw-r--r--lib/public/Files/Folder.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Node/Folder.php b/lib/private/Files/Node/Folder.php
index 36c4cbe58bc..ec73a8c06ae 100644
--- a/lib/private/Files/Node/Folder.php
+++ b/lib/private/Files/Node/Folder.php
@@ -76,7 +76,7 @@ class Folder extends Node implements \OCP\Files\Folder {
/**
* @param string $path
- * @return string
+ * @return string|null
*/
public function getRelativePath($path) {
if ($this->path === '' or $this->path === '/') {
diff --git a/lib/public/Files/Folder.php b/lib/public/Files/Folder.php
index 3e90abdd944..292d53d7767 100644
--- a/lib/public/Files/Folder.php
+++ b/lib/public/Files/Folder.php
@@ -55,7 +55,7 @@ interface Folder extends Node {
*
* @param string $path absolute path of an item in the folder
* @throws \OCP\Files\NotFoundException
- * @return string
+ * @return string|null
* @since 6.0.0
*/
public function getRelativePath($path);