diff --git a/lib/PhpStatistics.php b/lib/PhpStatistics.php index b8ebf15b..928d1ed2 100644 --- a/lib/PhpStatistics.php +++ b/lib/PhpStatistics.php @@ -114,7 +114,7 @@ protected function getAPCuStatus(): array { * * @return array of strings with the names of the loaded extensions */ - protected function getLoadedPhpExtensions(): array { - return (function_exists('get_loaded_extensions') ? get_loaded_extensions() : ['Unable to list extensions']); + protected function getLoadedPhpExtensions(): ?array { + return (function_exists('get_loaded_extensions') ? get_loaded_extensions() : null); } }