Skip to content

Commit

Permalink
Update lib/PhpStatistics.php
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Citharel <github@tcit.fr>
  • Loading branch information
R0Wi and tcitworld authored Apr 9, 2022
1 parent 3e75536 commit ce3f41b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PhpStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit ce3f41b

Please sign in to comment.