Parameter could be declared as array.

This commit is contained in:
Yuriy Pikhtarev 2017-05-05 01:05:10 +03:00
parent 07b4d38fe9
commit 07c6fd4a75
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
3 changed files with 7 additions and 7 deletions

View file

@ -354,7 +354,7 @@ function setbit(&$int, $bit_num, $on)
forum auth levels, this will prevent the auth function having to do its own
lookup
*/
function auth($type, $forum_id, $ug_data, $f_access = array(), $group_perm = UG_PERM_BOTH)
function auth($type, $forum_id, $ug_data, array $f_access = array(), $group_perm = UG_PERM_BOTH)
{
global $lang, $bf, $datastore;
@ -2002,7 +2002,7 @@ class log_action
}
}
public function mod($type_name, $args = array())
public function mod($type_name, array $args = array())
{
global $userdata;
@ -2050,7 +2050,7 @@ class log_action
DB()->query("INSERT INTO " . BB_LOG . " $sql_args");
}
public function admin($type_name, $args = array())
public function admin($type_name, array $args = array())
{
$this->mod($type_name, $args);
}
@ -2287,7 +2287,7 @@ function log_sphinx_error($err_type, $err_msg, $query = '')
}
}
function get_title_match_topics($title_match_sql, $forum_ids = array())
function get_title_match_topics($title_match_sql, array $forum_ids = array())
{
global $bb_cfg, $sphinx, $userdata, $title_match, $lang;

View file

@ -59,7 +59,7 @@ class upload_common
8 => 'tiff',
);
public function init($cfg = array(), $post_params = array(), $uploaded_only = true): bool
public function init(array $cfg = array(), array $post_params = array(), $uploaded_only = true): bool
{
global $bb_cfg, $lang;
@ -129,7 +129,7 @@ class upload_common
return true;
}
public function store($mode = '', $params = array())
public function store($mode = '', array $params = array())
{
if ($mode == 'avatar') {
delete_avatar($params['user_id'], $params['avatar_ext_id']);

View file

@ -105,7 +105,7 @@ class user_common
* @param array $cfg
* @return array|bool|null
*/
public function session_start($cfg = array())
public function session_start(array $cfg = array())
{
global $bb_cfg;