aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-01-29 16:10:31 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-01-29 16:10:31 +0100
commit67e3ecef98cceb947e8d3d5df7695f5f68ad0b6c (patch)
tree3070686bedde56791337dc3fbc7fcd6f4d87047a /core
parentccc66e912b171ba7bb4e5b4478508a22202eb356 (diff)
downloadnextcloud-server-67e3ecef98cceb947e8d3d5df7695f5f68ad0b6c.tar.gz
nextcloud-server-67e3ecef98cceb947e8d3d5df7695f5f68ad0b6c.zip
chore: Cleanup Installer class as well
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core')
-rw-r--r--core/Command/Maintenance/Install.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/Command/Maintenance/Install.php b/core/Command/Maintenance/Install.php
index 4401921dacb..84ac34528f1 100644
--- a/core/Command/Maintenance/Install.php
+++ b/core/Command/Maintenance/Install.php
@@ -75,7 +75,6 @@ class Install extends Command {
protected function execute(InputInterface $input, OutputInterface $output): int {
// validate the environment
- $server = \OC::$server;
$setupHelper = \OCP\Server::get(\OC\Setup::class);
$sysInfo = $setupHelper->getSystemInfo(true);
$errors = $sysInfo['errors'];
@@ -198,9 +197,9 @@ class Install extends Command {
/**
* @param OutputInterface $output
- * @param $errors
+ * @param array<string|array> $errors
*/
- protected function printErrors(OutputInterface $output, $errors) {
+ protected function printErrors(OutputInterface $output, array $errors): void {
foreach ($errors as $error) {
if (is_array($error)) {
$output->writeln('<error>' . $error['error'] . '</error>');