From ed9be050ad5bded4920e488b550705ad374f1085 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sat, 31 Oct 2020 14:16:40 +0100 Subject: [PATCH] [ticket/10824] Clean up code a bit PHPBB3-10824 --- phpBB/phpbb/json/sanitizer.php | 2 +- phpBB/phpbb/language/language_file_helper.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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));