1616 */
1717abstract class type_test_case extends base
1818{
19+ public static function check_condition_test_data (): void
20+ {
21+ }
22+
1923 /**
2024 * Test the condition type's check method
2125 *
2226 * @dataProvider check_condition_test_data
2327 */
24- public function test_check_condition ($ user_data , $ expected , $ default , $ options )
28+ public function test_check_condition ($ user_data , $ expected , $ default , $ options ): void
2529 {
2630 // Prepare the users data for checking
2731 foreach ($ user_data as $ user_id => $ data )
@@ -56,7 +60,7 @@ public function test_check_condition($user_data, $expected, $default, $options)
5660 *
5761 * @dataProvider check_condition_test_data
5862 */
59- public function test_check_condition_with_users ($ user_data , $ expected , $ default )
63+ public function test_check_condition_with_users ($ user_data , $ expected , $ default ): void
6064 {
6165 // Update the users regdate timestamp
6266 foreach ($ user_data as $ user_id => $ data )
@@ -93,7 +97,7 @@ public function test_check_condition_with_users($user_data, $expected, $default)
9397 * @param array $user_ids
9498 * @return array Array of user ids and their default group ids
9599 */
96- public function helper_default_groups ($ user_ids )
100+ public function helper_default_groups (array $ user_ids ): array
97101 {
98102 $ sql = 'SELECT user_id, group_id
99103 FROM phpbb_users
@@ -116,5 +120,5 @@ public function helper_default_groups($user_ids)
116120 * @param int $user_id
117121 * @param int $data
118122 */
119- abstract public function helper_update_user_data ($ user_id , $ data );
123+ abstract public function helper_update_user_data (int $ user_id , int $ data );
120124}
0 commit comments