From 49361c40e26d0235572c83f98f48f876027ae835 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 30 May 2019 14:37:26 +0200 Subject: [PATCH] Typehint builtin types in constructor to not initiate autoloading Signed-off-by: Roeland Jago Douma --- apps/dav/lib/CalDAV/CalDavBackend.php | 2 +- apps/dav/lib/Connector/Sabre/Principal.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index 14de848013f..2d3dbd8dd12 100644 --- a/apps/dav/lib/CalDAV/CalDavBackend.php +++ b/apps/dav/lib/CalDAV/CalDavBackend.php @@ -192,7 +192,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription ISecureRandom $random, ILogger $logger, EventDispatcherInterface $dispatcher, - $legacyEndpoint = false) { + bool $legacyEndpoint = false) { $this->db = $db; $this->principalBackend = $principalBackend; $this->userManager = $userManager; diff --git a/apps/dav/lib/Connector/Sabre/Principal.php b/apps/dav/lib/Connector/Sabre/Principal.php index 812f9d54162..902c70bdaff 100644 --- a/apps/dav/lib/Connector/Sabre/Principal.php +++ b/apps/dav/lib/Connector/Sabre/Principal.php @@ -91,7 +91,7 @@ class Principal implements BackendInterface { IUserSession $userSession, IConfig $config, IAppManager $appManager, - $principalPrefix = 'principals/users/') { + string $principalPrefix = 'principals/users/') { $this->userManager = $userManager; $this->groupManager = $groupManager; $this->shareManager = $shareManager; -- 2.39.5