diff --git a/apps/dav/lib/CalDAV/Sharing/Service.php b/apps/dav/lib/CalDAV/Sharing/Service.php index 35704061c1249..cdf8c892ab533 100644 --- a/apps/dav/lib/CalDAV/Sharing/Service.php +++ b/apps/dav/lib/CalDAV/Sharing/Service.php @@ -27,7 +27,7 @@ class Service extends SharingService { protected string $resourceType = 'calendar'; - public function __construct(SharingMapper $mapper) { + public function __construct(protected SharingMapper $mapper) { parent::__construct($mapper); } } diff --git a/apps/dav/lib/CardDAV/Sharing/Service.php b/apps/dav/lib/CardDAV/Sharing/Service.php index c275f998272fb..5da71defb5ead 100644 --- a/apps/dav/lib/CardDAV/Sharing/Service.php +++ b/apps/dav/lib/CardDAV/Sharing/Service.php @@ -27,7 +27,7 @@ class Service extends SharingService { protected string $resourceType = 'addressbook'; - public function __construct(SharingMapper $mapper) { + public function __construct(protected SharingMapper $mapper) { parent::__construct($mapper); } } diff --git a/apps/dav/lib/DAV/Sharing/SharingService.php b/apps/dav/lib/DAV/Sharing/SharingService.php index 899b9cb569b48..4b2a0beed1cf0 100644 --- a/apps/dav/lib/DAV/Sharing/SharingService.php +++ b/apps/dav/lib/DAV/Sharing/SharingService.php @@ -23,7 +23,7 @@ abstract class SharingService { protected string $resourceType = ''; - public function __construct(private SharingMapper $mapper) { + public function __construct(protected SharingMapper $mapper) { } public function getResourceType(): string {