1 | <?php |
||
3 | class DBStaticChat { |
||
4 | |||
5 | // Chat ************************************************************************************************************* |
||
6 | public static function db_chat_player_list_online($chat_refresh_rate, $ally_add) { |
||
19 | |||
20 | /** |
||
21 | * @param $user_id |
||
22 | * @param $nick |
||
23 | * @param $ally_id |
||
24 | * @param $message |
||
25 | * @param $chat_message_sender_name |
||
26 | * @param $chat_message_recipient_id |
||
27 | * @param $chat_message_recipient_name |
||
28 | */ |
||
29 | public static function db_chat_message_insert($user_id, $nick, $ally_id, $message, $chat_message_sender_name = '', $chat_message_recipient_id = 0, $chat_message_recipient_name = '') { |
||
44 | |||
45 | /** |
||
46 | * @param $alliance |
||
47 | * |
||
48 | * @return array|bool|mysqli_result|null |
||
49 | */ |
||
50 | public static function db_chat_message_count_by_ally($alliance) { |
||
55 | |||
56 | /** |
||
57 | * @param $alliance |
||
58 | * @param $where_add |
||
59 | * @param $start_row |
||
60 | * @param $page_limit |
||
61 | * |
||
62 | * @return array|bool|mysqli_result|null |
||
63 | */ |
||
64 | public static function db_chat_message_get_page($alliance, $where_add, $start_row, $page_limit) { |
||
74 | |||
75 | /** |
||
76 | * @param $chat_directive |
||
77 | * @param $user |
||
78 | */ |
||
79 | public static function db_chat_player_update_invisibility($chat_directive, $user) { |
||
82 | |||
83 | /** |
||
84 | * @param $temp |
||
85 | * @param $chat_player_subject |
||
86 | */ |
||
87 | public static function db_chat_player_update_unmute($temp, $chat_player_subject) { |
||
90 | |||
91 | /** |
||
92 | * @param $date_compiled |
||
93 | * @param $chat_command_parsed_two |
||
94 | * @param $chat_player_subject |
||
95 | */ |
||
96 | public static function db_chat_player_update_mute($date_compiled, $chat_command_parsed_two, $chat_player_subject) { |
||
99 | |||
100 | /** |
||
101 | * @param $delete |
||
102 | */ |
||
103 | public static function db_chat_message_delete($delete) { |
||
106 | |||
107 | public static function db_chat_message_purge() { |
||
110 | |||
111 | /** |
||
112 | * @return array|bool|mysqli_result|null |
||
113 | */ |
||
114 | public static function db_chat_message_get_last_25() { |
||
119 | |||
120 | |||
121 | /** |
||
122 | * @param $player_id |
||
123 | * @param $fields |
||
124 | * |
||
125 | * @return array|bool|mysqli_result|null |
||
126 | */ |
||
127 | public static function db_chat_player_get($player_id, $fields) { |
||
130 | |||
131 | |||
132 | /** |
||
133 | * @param $player_id |
||
134 | */ |
||
135 | public static function db_chat_player_insert($player_id) { |
||
138 | |||
139 | |||
140 | /** |
||
141 | * @param $user |
||
142 | */ |
||
143 | public static function db_chat_player_update($user) { |
||
146 | |||
147 | |||
148 | /** |
||
149 | * @param $alliance |
||
150 | * @param $user |
||
151 | * |
||
152 | * @return array|bool|mysqli_result|null |
||
153 | */ |
||
154 | public static function db_chat_list_select_advanced($alliance, $user) { |
||
168 | |||
169 | |||
170 | /** |
||
171 | * @param $alliance |
||
172 | * @param $user |
||
173 | * @param $where_add |
||
174 | * @param $start_row |
||
175 | * @param $page_limit |
||
176 | * |
||
177 | * @return array|bool|mysqli_result|null |
||
178 | */ |
||
179 | public static function db_chat_list_get_with_users($alliance, $user, $where_add, $start_row, $page_limit) { |
||
198 | |||
199 | /** |
||
200 | * @param $user |
||
201 | * |
||
202 | * @return array|bool|mysqli_result|null |
||
203 | */ |
||
204 | public static function db_chat_player_select_id($user) { |
||
209 | |||
210 | |||
211 | /** |
||
212 | * @param $user |
||
213 | */ |
||
214 | public static function db_chat_player_update_activity($user) { |
||
217 | |||
218 | } |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: