diff --git a/core/Command/App/ListApps.php b/core/Command/App/ListApps.php index 524b5ecd89d16..85ec1d3c0d19d 100644 --- a/core/Command/App/ListApps.php +++ b/core/Command/App/ListApps.php @@ -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);