1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Do not display "Enabled extensions: " for empty ext list

This commit is contained in:
Alies Lapatsin 2023-01-18 20:55:14 +01:00
parent 2f385a9057
commit a28d825476

View File

@ -564,8 +564,8 @@ class ProjectAnalyzer
$source,
);
if (count($codebase->config->php_extensions) > 0) {
$enabled_extensions_names = array_keys(array_filter($codebase->config->php_extensions));
$enabled_extensions_names = array_keys(array_filter($codebase->config->php_extensions));
if (count($enabled_extensions_names) > 0) {
$message .= ' Enabled extensions: ' . implode(', ', $enabled_extensions_names);
}