]> source.dussan.org Git - nextcloud-server.git/commitdiff
Typehint builtin types in constructor to not initiate autoloading 15816/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Thu, 30 May 2019 12:37:26 +0000 (14:37 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Tue, 4 Jun 2019 13:13:33 +0000 (15:13 +0200)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/dav/lib/CalDAV/CalDavBackend.php
apps/dav/lib/Connector/Sabre/Principal.php

index 14de848013f646e50c8bbe7c479cddeb3ffb5263..2d3dbd8dd12ec89ca17f745ecc1ae132aa6c9dcf 100644 (file)
@@ -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;
index 812f9d5416263a3df5196abe9ac47d00fa504047..902c70bdaff0b1add98c0c37f214537fdad3ee24 100644 (file)
@@ -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;