From 222049927a45057021a15fda0fe2d69d5401d8f3 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 2 Sep 2022 19:15:05 +0100 Subject: [PATCH] Language: fixed bogus callable reference in array_map for some reason phpstan only reports this under checkImplicitMixed. --- src/lang/Language.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lang/Language.php b/src/lang/Language.php index 0cba6bd21..7e6f6cfcc 100644 --- a/src/lang/Language.php +++ b/src/lang/Language.php @@ -129,7 +129,7 @@ class Language{ protected static function loadLang(string $path, string $languageCode) : array{ $file = Path::join($path, $languageCode . ".ini"); if(file_exists($file)){ - $strings = array_map('\stripcslashes', Utils::assumeNotFalse(parse_ini_file($file, false, INI_SCANNER_RAW), "Missing or inaccessible required resource files")); + $strings = array_map('stripcslashes', Utils::assumeNotFalse(parse_ini_file($file, false, INI_SCANNER_RAW), "Missing or inaccessible required resource files")); if(count($strings) > 0){ return $strings; }