aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/App/Remove.php
diff options
context:
space:
mode:
authorFaraz Samapoor <fsa@adlas.at>2023-06-12 18:32:59 +0330
committerLouis <6653109+artonge@users.noreply.github.com>2023-06-19 12:55:27 +0200
commitea844ca5fbaacb8b4b68d82b6682fa01a1fa09e0 (patch)
tree1e85b94509892cdbcd92ca76b508b0886806115f /core/Command/App/Remove.php
parentceee417d2c48153d25460405c55594f8fdbb6b80 (diff)
downloadnextcloud-server-ea844ca5fbaacb8b4b68d82b6682fa01a1fa09e0.tar.gz
nextcloud-server-ea844ca5fbaacb8b4b68d82b6682fa01a1fa09e0.zip
Uses PHP8's constructor property promotion.
in core/Command/App, /Background, and /Broadcast classes. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
Diffstat (limited to 'core/Command/App/Remove.php')
-rw-r--r--core/Command/App/Remove.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/core/Command/App/Remove.php b/core/Command/App/Remove.php
index ced17e3ef92..522ddc20e07 100644
--- a/core/Command/App/Remove.php
+++ b/core/Command/App/Remove.php
@@ -39,15 +39,12 @@ use Symfony\Component\Console\Output\OutputInterface;
use Throwable;
class Remove extends Command implements CompletionAwareInterface {
- protected IAppManager $manager;
- private Installer $installer;
- private LoggerInterface $logger;
-
- public function __construct(IAppManager $manager, Installer $installer, LoggerInterface $logger) {
+ public function __construct(
+ protected IAppManager $manager,
+ private Installer $installer,
+ private LoggerInterface $logger,
+ ) {
parent::__construct();
- $this->manager = $manager;
- $this->installer = $installer;
- $this->logger = $logger;
}
protected function configure() {