Fix static analysis by stubbing more circle methods
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
12
composer.lock
generated
12
composer.lock
generated
@@ -305,17 +305,17 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ChristophWurst/nextcloud_composer.git",
|
||||
"reference": "5e9719488fe558db974ef45f289a6911fe2c6850"
|
||||
"reference": "309ccfab8b7e842df9f17d6389f190411158bd36"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/ChristophWurst/nextcloud_composer/zipball/5e9719488fe558db974ef45f289a6911fe2c6850",
|
||||
"reference": "5e9719488fe558db974ef45f289a6911fe2c6850",
|
||||
"url": "https://api.github.com/repos/ChristophWurst/nextcloud_composer/zipball/309ccfab8b7e842df9f17d6389f190411158bd36",
|
||||
"reference": "309ccfab8b7e842df9f17d6389f190411158bd36",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.4 || ~8.0 || ~8.1",
|
||||
"psr/container": "^1.0",
|
||||
"psr/container": "^1.1.1",
|
||||
"psr/event-dispatcher": "^1.0",
|
||||
"psr/log": "^1.1"
|
||||
},
|
||||
@@ -341,7 +341,7 @@
|
||||
"issues": "https://github.com/ChristophWurst/nextcloud_composer/issues",
|
||||
"source": "https://github.com/ChristophWurst/nextcloud_composer/tree/master"
|
||||
},
|
||||
"time": "2022-05-11T02:03:08+00:00"
|
||||
"time": "2022-07-02T02:10:17+00:00"
|
||||
},
|
||||
{
|
||||
"name": "composer/package-versions-deprecated",
|
||||
@@ -5473,5 +5473,5 @@
|
||||
"platform-overrides": {
|
||||
"php": "7.4"
|
||||
},
|
||||
"plugin-api-version": "2.2.0"
|
||||
"plugin-api-version": "2.3.0"
|
||||
}
|
||||
|
||||
@@ -127,7 +127,9 @@
|
||||
</TooManyArguments>
|
||||
</file>
|
||||
<file src="lib/Service/CirclesService.php">
|
||||
<UndefinedClass occurrences="1"/>
|
||||
<RedundantCondition occurrences="1">
|
||||
<code>$member !== null</code>
|
||||
</RedundantCondition>
|
||||
</file>
|
||||
<file src="lib/Service/FileService.php">
|
||||
<RedundantCondition occurrences="2">
|
||||
|
||||
@@ -42,6 +42,8 @@ namespace OCA\Circles\Model {
|
||||
public const APP_CIRCLES = 10001;
|
||||
public const APP_OCC = 10002;
|
||||
public const APP_DEFAULT = 11000;
|
||||
|
||||
public function getLevel(): int {}
|
||||
}
|
||||
|
||||
class Circle {
|
||||
@@ -50,17 +52,30 @@ namespace OCA\Circles\Model {
|
||||
public function getOwner(): string {}
|
||||
public function getSingleId(): string {}
|
||||
public function getInheritedMembers(): array {}
|
||||
public function getInitiator(): Member {}
|
||||
}
|
||||
|
||||
class FederatedUser {
|
||||
}
|
||||
}
|
||||
|
||||
namespace OCA\Circles\Model\Probes {
|
||||
class CircleProble {
|
||||
class CircleProbe {
|
||||
public function __construct() {}
|
||||
public function mustBeMember(bool $must = true): self {}
|
||||
}
|
||||
}
|
||||
|
||||
namespace OCA\Circles {
|
||||
use OCA\Circles\Model\Circle;
|
||||
use OCA\Circles\Model\FederatedUser;
|
||||
use OCA\Circles\Model\Probes\CircleProbe;
|
||||
class CirclesManager {
|
||||
public function startSuperSession(): void {}
|
||||
public function startSession(?FederatedUser $federatedUser = null): void {}
|
||||
public function getCircles(?CircleProbe $probe = null): array {}
|
||||
public function getCircle(string $singleId, ?CircleProbe $probe = null): Circle {}
|
||||
public function getFederatedUser(string $federatedId, int $type = Member::TYPE_SINGLE): FederatedUser {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user