@@ -114,15 +114,15 @@ public function testGetLocaleReturnsDefaultLocaleIfNotSet()
114114 $ this ->assertEquals ('en ' , $ translator ->getLocale ());
115115 }
116116
117- public function getTransTests ()
117+ public static function getTransTests ()
118118 {
119119 return [
120120 ['Symfony is great! ' , 'Symfony is great! ' , []],
121121 ['Symfony is awesome! ' , 'Symfony is %what%! ' , ['%what% ' => 'awesome ' ]],
122122 ];
123123 }
124124
125- public function getTransChoiceTests ()
125+ public static function getTransChoiceTests ()
126126 {
127127 return [
128128 ['There are no apples ' , '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples ' , 0 ],
@@ -146,7 +146,7 @@ public function testInterval($expected, $number, $interval)
146146 $ this ->assertEquals ($ expected , $ translator ->trans ($ interval .' foo|[1,Inf[ bar ' , ['%count% ' => $ number ]));
147147 }
148148
149- public function getInterval ()
149+ public static function getInterval ()
150150 {
151151 return [
152152 ['foo ' , 3 , '{1,2, 3 ,4} ' ],
@@ -189,7 +189,7 @@ public function testThrowExceptionIfMatchingMessageCannotBeFound($id, $number)
189189 $ translator ->trans ($ id , ['%count% ' => $ number ]);
190190 }
191191
192- public function getNonMatchingMessages ()
192+ public static function getNonMatchingMessages ()
193193 {
194194 return [
195195 ['{0} There are no apples|{1} There is one apple ' , 2 ],
@@ -199,7 +199,7 @@ public function getNonMatchingMessages()
199199 ];
200200 }
201201
202- public function getChooseTests ()
202+ public static function getChooseTests ()
203203 {
204204 return [
205205 ['There are no apples ' , '{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples ' , 0 ],
@@ -315,7 +315,7 @@ public function testLangcodes($nplural, $langCodes)
315315 *
316316 * As it is impossible to have this ever complete we should try as hard as possible to have it almost complete.
317317 */
318- public function successLangcodes (): array
318+ public static function successLangcodes (): array
319319 {
320320 return [
321321 ['1 ' , ['ay ' , 'bo ' , 'cgg ' , 'dz ' , 'id ' , 'ja ' , 'jbo ' , 'ka ' , 'kk ' , 'km ' , 'ko ' , 'ky ' ]],
@@ -334,7 +334,7 @@ public function successLangcodes(): array
334334 *
335335 * @return array with nplural together with langcodes
336336 */
337- public function failingLangcodes (): array
337+ public static function failingLangcodes (): array
338338 {
339339 return [
340340 ['1 ' , ['fa ' ]],
0 commit comments