[ticket/17107] Add method parameter and result type declarations

PHPBB3-17107
This commit is contained in:
rxu 2023-06-14 21:13:49 +07:00
parent dfe6421da8
commit 4f9bd296a7
No known key found for this signature in database
GPG key ID: 955F0567380E586A

View file

@ -41,10 +41,9 @@ class viewonline_helper
* Array structure matches sql_fethrowset() result array * Array structure matches sql_fethrowset() result array
* *
* @param array $session_data_rowset Users' session data array * @param array $session_data_rowset Users' session data array
*
* @return void * @return void
*/ */
public function get_forum_ids(&$session_data_rowset) public function get_forum_ids(array &$session_data_rowset): void
{ {
$topic_ids = $match = []; $topic_ids = $match = [];
foreach ($session_data_rowset as $number => $row) foreach ($session_data_rowset as $number => $row)