@@ -758,45 +758,45 @@ protected function tearDown(): void
758
758
\Locale::setDefault ($ this ->defaultLocale );
759
759
}
760
760
761
- public function provideLocales ()
761
+ public static function provideLocales ()
762
762
{
763
763
return array_map (
764
764
fn ($ locale ) => [$ locale ],
765
- $ this -> getLocales ()
765
+ static :: getLocales ()
766
766
);
767
767
}
768
768
769
- public function provideLocaleAliases ()
769
+ public static function provideLocaleAliases ()
770
770
{
771
771
return array_map (
772
772
fn ($ alias , $ ofLocale ) => [$ alias , $ ofLocale ],
773
- array_keys ($ this -> getLocaleAliases ()),
774
- $ this -> getLocaleAliases ()
773
+ array_keys (static :: getLocaleAliases ()),
774
+ static :: getLocaleAliases ()
775
775
);
776
776
}
777
777
778
- public function provideRootLocales ()
778
+ public static function provideRootLocales ()
779
779
{
780
780
return array_map (
781
781
fn ($ locale ) => [$ locale ],
782
782
$ this ->getRootLocales ()
783
783
);
784
784
}
785
785
786
- protected function getLocales ()
786
+ protected static function getLocales ()
787
787
{
788
788
return self ::LOCALES ;
789
789
}
790
790
791
- protected function getLocaleAliases ()
791
+ protected static function getLocaleAliases ()
792
792
{
793
793
return self ::LOCALE_ALIASES ;
794
794
}
795
795
796
- protected function getRootLocales ()
796
+ protected static function getRootLocales ()
797
797
{
798
798
if (null === self ::$ rootLocales ) {
799
- self ::$ rootLocales = array_filter ($ this -> getLocales (), fn ($ locale ) => // no locales for which fallback is possible (e.g "en_GB")
799
+ self ::$ rootLocales = array_filter (static :: getLocales (), fn ($ locale ) => // no locales for which fallback is possible (e.g "en_GB")
800
800
!str_contains ($ locale , '_ ' ));
801
801
}
802
802
0 commit comments