Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/PhpStatistics.php4
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);
}
}