diff --git a/phpBB/phpbb/json/sanitizer.php b/phpBB/phpbb/json/sanitizer.php index 101c19ae32..e9294f41cf 100644 --- a/phpBB/phpbb/json/sanitizer.php +++ b/phpBB/phpbb/json/sanitizer.php @@ -33,7 +33,7 @@ class sanitizer { if (!empty($data)) { - $json_sanitizer = function (&$value, $key) { + $json_sanitizer = function (&$value) { $type_cast_helper = new type_cast_helper(); $type_cast_helper->set_var($value, $value, gettype($value), true); }; diff --git a/phpBB/phpbb/language/language_file_helper.php b/phpBB/phpbb/language/language_file_helper.php index 2a56740b6d..01604c033a 100644 --- a/phpBB/phpbb/language/language_file_helper.php +++ b/phpBB/phpbb/language/language_file_helper.php @@ -69,7 +69,7 @@ class language_file_helper * @param string $path * @return array */ - public function get_language_data_from_composer_file($path) + public function get_language_data_from_composer_file(string $path) { $json_data = file_get_contents($path); return $this->get_language_data_from_json(sanitizer::decode($json_data));