diff --git a/src/Bundle/ChillTaskBundle/Templating/UI/CountNotificationTask.php b/src/Bundle/ChillTaskBundle/Templating/UI/CountNotificationTask.php index 8a1b0c8a6..361c771f7 100644 --- a/src/Bundle/ChillTaskBundle/Templating/UI/CountNotificationTask.php +++ b/src/Bundle/ChillTaskBundle/Templating/UI/CountNotificationTask.php @@ -22,16 +22,8 @@ class CountNotificationTask implements NotificationCounterInterface { final public const string CACHE_KEY = 'chill_task.count_notifications.user.%d.%s'; - protected CacheItemPoolInterface $cachePool; - - protected SingleTaskRepository $singleTaskRepository; - - public function __construct( - SingleTaskRepository $singleTaskRepository, - CacheItemPoolInterface $cachePool, - ) { - $this->singleTaskRepository = $singleTaskRepository; - $this->cachePool = $cachePool; + public function __construct(protected SingleTaskRepository $singleTaskRepository, protected CacheItemPoolInterface $cachePool) + { } public function addNotification(UserInterface $u): int