From: Roeland Jago Douma Date: Thu, 30 May 2019 12:37:26 +0000 (+0200) Subject: Typehint builtin types in constructor to not initiate autoloading X-Git-Tag: v17.0.0beta1~331^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F15816%2Fhead;p=nextcloud-server.git Typehint builtin types in constructor to not initiate autoloading Signed-off-by: Roeland Jago Douma --- 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;