From cf8f79356d4be2ff189a4315e5c7e184f66da810 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 15 Jan 2021 22:23:57 +0100 Subject: [PATCH] [ticket/10824] Add return type hints PHPBB3-10824 --- phpBB/phpbb/language/language_file_helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/phpbb/language/language_file_helper.php b/phpBB/phpbb/language/language_file_helper.php index 01604c033a..3126ff5836 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(string $path) + public function get_language_data_from_composer_file(string $path): array { $json_data = file_get_contents($path); return $this->get_language_data_from_json(sanitizer::decode($json_data)); @@ -81,7 +81,7 @@ class language_file_helper * @param array $data * @return array */ - protected function get_language_data_from_json(array $data) + protected function get_language_data_from_json(array $data): array { if (!isset($data['extra']['language-iso']) || !isset($data['extra']['english-name']) || !isset($data['extra']['local-name'])) {