From 8322cec951ebd6d48eac33404ebd0a86069f44df Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 5 Mar 2019 15:46:56 +0100 Subject: Suppress phan exceptions because they are catched by a class_exists Signed-off-by: Morris Jobke --- apps/dav/lib/Connector/Sabre/Principal.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/dav/lib/Connector/Sabre') 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')) { -- cgit v1.2.3