Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add version of disabled apps when available
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Dec 15, 2021
commit a376aa6c616e4a84cf25a9cfed4a2b4040dc258e
4 changes: 2 additions & 2 deletions core/Command/App/ListApps.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int

sort($enabledApps);
foreach ($enabledApps as $app) {
$apps['enabled'][$app] = isset($versions[$app]) ? $versions[$app] : true;
$apps['enabled'][$app] = $versions[$app] ?? true;
}

sort($disabledApps);
foreach ($disabledApps as $app) {
$apps['disabled'][$app] = null;
$apps['disabled'][$app] = $versions[$app] ?? null;
}

$this->writeAppList($input, $output, $apps);
Expand Down