@@ -21,7 +21,7 @@ abstract class type_test_case extends base
2121 *
2222 * @dataProvider check_condition_test_data
2323 */
24- public function test_check_condition ($ user_data , $ expected , $ default , $ options )
24+ public function test_check_condition ($ user_data , $ expected , $ default , $ options ): void
2525 {
2626 // Prepare the users data for checking
2727 foreach ($ user_data as $ user_id => $ data )
@@ -56,7 +56,7 @@ public function test_check_condition($user_data, $expected, $default, $options)
5656 *
5757 * @dataProvider check_condition_test_data
5858 */
59- public function test_check_condition_with_users ($ user_data , $ expected , $ default )
59+ public function test_check_condition_with_users ($ user_data , $ expected , $ default ): void
6060 {
6161 // Update the users regdate timestamp
6262 foreach ($ user_data as $ user_id => $ data )
@@ -93,7 +93,7 @@ public function test_check_condition_with_users($user_data, $expected, $default)
9393 * @param array $user_ids
9494 * @return array Array of user ids and their default group ids
9595 */
96- public function helper_default_groups ($ user_ids )
96+ public function helper_default_groups (array $ user_ids ): array
9797 {
9898 $ sql = 'SELECT user_id, group_id
9999 FROM phpbb_users
@@ -116,5 +116,5 @@ public function helper_default_groups($user_ids)
116116 * @param int $user_id
117117 * @param int $data
118118 */
119- abstract public function helper_update_user_data ($ user_id , $ data );
119+ abstract public function helper_update_user_data (int $ user_id , int $ data );
120120}
0 commit comments