aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/ViewOnly.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib/ViewOnly.php')
-rw-r--r--apps/files_sharing/lib/ViewOnly.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/files_sharing/lib/ViewOnly.php b/apps/files_sharing/lib/ViewOnly.php
index 2a837b627af..9cd18f968f6 100644
--- a/apps/files_sharing/lib/ViewOnly.php
+++ b/apps/files_sharing/lib/ViewOnly.php
@@ -17,11 +17,9 @@ use OCP\Files\NotFoundException;
*/
class ViewOnly {
- /** @var Folder */
- private $userFolder;
-
- public function __construct(Folder $userFolder) {
- $this->userFolder = $userFolder;
+ public function __construct(
+ private Folder $userFolder,
+ ) {
}
/**