From 6f2adf34fea4a428a83d9ed6b0277d2b65337178 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Wed, 22 Jan 2025 15:58:08 -0800 Subject: [PATCH] test: Update stub Signed-off-by: Christopher Ng [skip ci] --- tests/stub.phpstub | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/tests/stub.phpstub b/tests/stub.phpstub index 731313c11..e276058df 100644 --- a/tests/stub.phpstub +++ b/tests/stub.phpstub @@ -1088,3 +1088,34 @@ namespace OC\Share20 { public function getHideDownload(): bool; } } + +namespace OC\AppFramework\Bootstrap { + use OCP\Teams\ITeamResourceProvider; + + class Coordinator { + public function getRegistrationContext(): ?RegistrationContext {} + } + + class RegistrationContext { + /** + * @return ServiceRegistration[] + */ + public function getTeamResourceProviders(): array {} + } + + /** + * @psalm-immutable + * @template T + */ + class ServiceRegistration extends ARegistration { + /** + * @psalm-return class-string + */ + public function getService(): string {} + } + + /** + * @psalm-immutable + */ + abstract class ARegistration {} +}