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:
parent
40fca6254d
commit
cf8f79356d
@ -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']))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user