summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-05-30 14:37:26 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-06-04 15:13:33 +0200
commit49361c40e26d0235572c83f98f48f876027ae835 (patch)
tree5ddc4eeadee79baa3118307a65f6112a88adc281
parent357263a70bf56e351e0d292c6144f998dad7f079 (diff)
downloadnextcloud-server-49361c40e26d0235572c83f98f48f876027ae835.tar.gz
nextcloud-server-49361c40e26d0235572c83f98f48f876027ae835.zip
Typehint builtin types in constructor to not initiate autoloading
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r--apps/dav/lib/CalDAV/CalDavBackend.php2
-rw-r--r--apps/dav/lib/Connector/Sabre/Principal.php2
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;