diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-04-12 14:26:24 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-04-12 14:26:24 +0200 |
commit | 2049a21348f1e1ea16bb12ca36a410262f907d0e (patch) | |
tree | 92601435ebfc4ade7434c9b73dfb6601f086c4e3 | |
parent | a3017a437d8730d07252a84d0f42d282ea77031a (diff) | |
download | nextcloud-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.php | 13 |
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; } |