[ticket/16505] Fix use of count() on non-Countable

PHPBB3-16505
This commit is contained in:
rxu 2020-06-01 17:14:03 +07:00 committed by Marc Alexander
parent e65c0171e4
commit e19dac0658
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -292,9 +292,10 @@ class language
*
* @return string
*/
public function lang_array($key, $args = array())
public function lang_array($key, $args = [])
{
$lang = $this->lang_raw($key);
$args = (array) $args;
if ($lang === $key)
{