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:
parent
2f385a9057
commit
a28d825476
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user