aboutsummaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorFaraz Samapoor <f.samapoor@gmail.com>2023-06-23 23:03:56 +0330
committerFaraz Samapoor <fsa@adlas.at>2023-06-23 23:03:56 +0330
commite98cf3c37481ef92fbb2f50de16ea00d2958f3c3 (patch)
treecba89a58c0a9634e8d687a4d99a29b4158fa6aa8 /core/ajax
parent877ddd28277e6bd263832209f4d22e713b4bdd87 (diff)
downloadnextcloud-server-e98cf3c37481ef92fbb2f50de16ea00d2958f3c3.tar.gz
nextcloud-server-e98cf3c37481ef92fbb2f50de16ea00d2958f3c3.zip
Uses PHP8's constructor property promotion.
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/update.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index 2348e205283..bc7d8b67fc6 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -65,12 +65,11 @@ class FeedBackHandler {
private int $progressStateMax = 100;
private int $progressStateStep = 0;
private string $currentStep = '';
- private IEventSource $eventSource;
- private IL10N $l10n;
- public function __construct(IEventSource $eventSource, IL10N $l10n) {
- $this->eventSource = $eventSource;
- $this->l10n = $l10n;
+ public function __construct(
+ private IEventSource $eventSource,
+ private IL10N $l10n,
+ ) {
}
public function handleRepairFeedback(Event $event): void {