diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-04-13 07:31:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 07:31:16 +0200 |
commit | c233acce1401df41b43d715def06b8456e04da45 (patch) | |
tree | 44c9c77b250a1778ceb0c2572f617e0f873b4485 | |
parent | 1ddb7aa457eb83617b98e86000b9535eb17ec36d (diff) | |
parent | 2049a21348f1e1ea16bb12ca36a410262f907d0e (diff) | |
download | nextcloud-server-c233acce1401df41b43d715def06b8456e04da45.tar.gz nextcloud-server-c233acce1401df41b43d715def06b8456e04da45.zip |
Merge pull request #31942 from nextcloud/fix/dav-deprecated-warning
Fix warning about optional parameter before required one
-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; } |