aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-04-12 14:26:24 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-04-12 14:26:24 +0200
commit2049a21348f1e1ea16bb12ca36a410262f907d0e (patch)
tree92601435ebfc4ade7434c9b73dfb6601f086c4e3
parenta3017a437d8730d07252a84d0f42d282ea77031a (diff)
downloadnextcloud-server-2049a21348f1e1ea16bb12ca36a410262f907d0e.tar.gz
nextcloud-server-2049a21348f1e1ea16bb12ca36a410262f907d0e.zip
Fix warning about optional parameter before required one
Fixes this warning: PHP Deprecated: Required parameter $logger follows optional parameter $principalPrefix in /var/www/html/apps/dav/lib/CalDAV/CalendarRoot.php on line 37 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-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;
}