Typehint builtin types in constructor to not initiate autoloading

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2019-05-30 14:37:26 +02:00
parent 357263a70b
commit 49361c40e2
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
ISecureRandom $random, ISecureRandom $random,
ILogger $logger, ILogger $logger,
EventDispatcherInterface $dispatcher, EventDispatcherInterface $dispatcher,
$legacyEndpoint = false) { bool $legacyEndpoint = false) {
$this->db = $db; $this->db = $db;
$this->principalBackend = $principalBackend; $this->principalBackend = $principalBackend;
$this->userManager = $userManager; $this->userManager = $userManager;

View File

@ -91,7 +91,7 @@ class Principal implements BackendInterface {
IUserSession $userSession, IUserSession $userSession,
IConfig $config, IConfig $config,
IAppManager $appManager, IAppManager $appManager,
$principalPrefix = 'principals/users/') { string $principalPrefix = 'principals/users/') {
$this->userManager = $userManager; $this->userManager = $userManager;
$this->groupManager = $groupManager; $this->groupManager = $groupManager;
$this->shareManager = $shareManager; $this->shareManager = $shareManager;