diff options
-rw-r--r-- | lib/PhpStatistics.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PhpStatistics.php b/lib/PhpStatistics.php index b8ebf15..928d1ed 100644 --- a/lib/PhpStatistics.php +++ b/lib/PhpStatistics.php @@ -114,7 +114,7 @@ class PhpStatistics { * * @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); } } |