diff --git a/core/Command/App/ListApps.php b/core/Command/App/ListApps.php index b474a762f17c2..5d1e96d3233f1 100644 --- a/core/Command/App/ListApps.php +++ b/core/Command/App/ListApps.php @@ -88,12 +88,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);