1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 22:28:46 +01:00

[ticket/10824] Add return type hints

PHPBB3-10824
This commit is contained in:
Marc Alexander 2021-01-15 22:23:57 +01:00
parent 40fca6254d
commit cf8f79356d
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -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']))
{