diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-10-08 10:38:29 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-10-08 10:38:29 +0300 |
commit | 167099314cb07fb4bd3a854b874ba4277ed3d22f (patch) | |
tree | e0a0059ef750c6e5a2d65557a64c392f3174ac83 /lib/IMAP | |
parent | ab7d860073506851f0ee626a53aeabeffaf47883 (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.php | 2 |
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; |