Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps/dav
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2022-04-13 08:31:16 +0300
committerGitHub <noreply@github.com>2022-04-13 08:31:16 +0300
commitc233acce1401df41b43d715def06b8456e04da45 (patch)
tree44c9c77b250a1778ceb0c2572f617e0f873b4485 /apps/dav
parent1ddb7aa457eb83617b98e86000b9535eb17ec36d (diff)
parent2049a21348f1e1ea16bb12ca36a410262f907d0e (diff)
Merge pull request #31942 from nextcloud/fix/dav-deprecated-warning
Fix warning about optional parameter before required one
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/CalDAV/CalendarRoot.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/apps/dav/lib/CalDAV/CalendarRoot.php b/apps/dav/lib/CalDAV/CalendarRoot.php
index e08264b8f59..0c701d9cdcf 100644
--- a/apps/dav/lib/CalDAV/CalendarRoot.php
+++ b/apps/dav/lib/CalDAV/CalendarRoot.php
@@ -30,11 +30,14 @@ use Sabre\CalDAV\Backend;
use Sabre\DAVACL\PrincipalBackend;
class CalendarRoot extends \Sabre\CalDAV\CalendarRoot {
-
- /** @var LoggerInterface */
- private $logger;
-
- public function __construct(PrincipalBackend\BackendInterface $principalBackend, Backend\BackendInterface $caldavBackend, $principalPrefix = 'principals', LoggerInterface $logger) {
+ private LoggerInterface $logger;
+
+ public function __construct(
+ PrincipalBackend\BackendInterface $principalBackend,
+ Backend\BackendInterface $caldavBackend,
+ $principalPrefix,
+ LoggerInterface $logger
+ ) {
parent::__construct($principalBackend, $caldavBackend, $principalPrefix);
$this->logger = $logger;
}