Skip to content

Commit

Permalink
test: Update stub
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>

[skip ci]
  • Loading branch information
Pytal authored and backportbot[bot] committed Jan 23, 2025
1 parent 712773c commit 6f2adf3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tests/stub.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -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<ITeamResourceProvider>[]
*/
public function getTeamResourceProviders(): array {}
}

/**
* @psalm-immutable
* @template T
*/
class ServiceRegistration extends ARegistration {
/**
* @psalm-return class-string<T>
*/
public function getService(): string {}
}

/**
* @psalm-immutable
*/
abstract class ARegistration {}
}

0 comments on commit 6f2adf3

Please sign in to comment.