Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/IMAP
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-08 10:38:29 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-08 10:38:29 +0300
commit167099314cb07fb4bd3a854b874ba4277ed3d22f (patch)
treee0a0059ef750c6e5a2d65557a64c392f3174ac83 /lib/IMAP
parentab7d860073506851f0ee626a53aeabeffaf47883 (diff)
Fix nullable return types reported by Psalm
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/IMAP')
-rw-r--r--lib/IMAP/Threading/Container.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IMAP/Threading/Container.php b/lib/IMAP/Threading/Container.php
index 77d695ea3..7075f4e18 100644
--- a/lib/IMAP/Threading/Container.php
+++ b/lib/IMAP/Threading/Container.php
@@ -89,7 +89,7 @@ class Container {
}
public function getParent(): Container {
- if ($this->isRoot()) {
+ if ($this->isRoot() || $this->parent === null) {
throw new RuntimeException('Container root has no parent');
}
return $this->parent;