summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-03-05 15:46:56 +0100
committerMorris Jobke <hey@morrisjobke.de>2019-03-05 15:46:56 +0100
commit8322cec951ebd6d48eac33404ebd0a86069f44df (patch)
tree898fa06018657c97ed1f8fea2224e644227ca2ca /apps/dav
parent12d3f246aa91e8bd32011094705b70abce1563bf (diff)
downloadnextcloud-server-8322cec951ebd6d48eac33404ebd0a86069f44df.tar.gz
nextcloud-server-8322cec951ebd6d48eac33404ebd0a86069f44df.zip
Suppress phan exceptions because they are catched by a class_exists
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/Connector/Sabre/Principal.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Principal.php b/apps/dav/lib/Connector/Sabre/Principal.php
index 57bc189a9f5..ca98d455b30 100644
--- a/apps/dav/lib/Connector/Sabre/Principal.php
+++ b/apps/dav/lib/Connector/Sabre/Principal.php
@@ -400,6 +400,8 @@ class Principal implements BackendInterface {
/**
* @param string $circleUniqueId
* @return array|null
+ * @suppress PhanUndeclaredClassMethod
+ * @suppress PhanUndeclaredClassCatch
*/
protected function circleToPrincipal($circleUniqueId) {
if (!\OC::$server->getAppManager()->isEnabledForUser('circles') || !class_exists('\OCA\Circles\Api\v1\Circles')) {
@@ -433,6 +435,7 @@ class Principal implements BackendInterface {
* @param bool $needGroups
* @return array
* @throws Exception
+ * @suppress PhanUndeclaredClassMethod
*/
public function getCircleMembership($principal):array {
if (!\OC::$server->getAppManager()->isEnabledForUser('circles') || !class_exists('\OCA\Circles\Api\v1\Circles')) {