aboutsummaryrefslogtreecommitdiffstats
path: root/apps/comments/lib/Notification
diff options
context:
space:
mode:
Diffstat (limited to 'apps/comments/lib/Notification')
-rw-r--r--apps/comments/lib/Notification/Listener.php9
-rw-r--r--apps/comments/lib/Notification/Notifier.php19
2 files changed, 7 insertions, 21 deletions
diff --git a/apps/comments/lib/Notification/Listener.php b/apps/comments/lib/Notification/Listener.php
index 3f92ac35540..d1662f84266 100644
--- a/apps/comments/lib/Notification/Listener.php
+++ b/apps/comments/lib/Notification/Listener.php
@@ -29,17 +29,12 @@ use OCP\IUserManager;
use OCP\Notification\IManager;
class Listener {
- /** @var IManager */
- protected $notificationManager;
- /** @var IUserManager */
- protected $userManager;
+ protected IManager $notificationManager;
+ protected IUserManager $userManager;
/**
* Listener constructor.
- *
- * @param IManager $notificationManager
- * @param IUserManager $userManager
*/
public function __construct(
IManager $notificationManager,
diff --git a/apps/comments/lib/Notification/Notifier.php b/apps/comments/lib/Notification/Notifier.php
index 745cb513978..7c6a40133ee 100644
--- a/apps/comments/lib/Notification/Notifier.php
+++ b/apps/comments/lib/Notification/Notifier.php
@@ -38,20 +38,11 @@ use OCP\Notification\INotifier;
class Notifier implements INotifier {
- /** @var IFactory */
- protected $l10nFactory;
-
- /** @var IRootFolder */
- protected $rootFolder;
-
- /** @var ICommentsManager */
- protected $commentsManager;
-
- /** @var IURLGenerator */
- protected $url;
-
- /** @var IUserManager */
- protected $userManager;
+ protected IFactory $l10nFactory;
+ protected IRootFolder $rootFolder;
+ protected ICommentsManager $commentsManager;
+ protected IURLGenerator $url;
+ protected IUserManager $userManager;
public function __construct(
IFactory $l10nFactory,