Suppress phan exceptions because they are catched by a class_exists

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2019-03-05 15:46:56 +01:00
parent 12d3f246aa
commit 8322cec951
No known key found for this signature in database
GPG key ID: FE03C3A163FEDE68

View file

@ -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')) {