diff options
author | Faraz Samapoor <f.samapoor@gmail.com> | 2023-06-23 23:03:56 +0330 |
---|---|---|
committer | Faraz Samapoor <fsa@adlas.at> | 2023-06-23 23:03:56 +0330 |
commit | e98cf3c37481ef92fbb2f50de16ea00d2958f3c3 (patch) | |
tree | cba89a58c0a9634e8d687a4d99a29b4158fa6aa8 /core/ajax | |
parent | 877ddd28277e6bd263832209f4d22e713b4bdd87 (diff) | |
download | nextcloud-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.php | 9 |
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 { |