mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Suppress phan exceptions because they are catched by a class_exists
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
12d3f246aa
commit
8322cec951
1 changed files with 3 additions and 0 deletions
|
|
@ -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')) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue