@@ -33,7 +33,10 @@ public function testNormalize(string $label, string $expected): void
33
33
self ::assertSame ($ expected , $ actual );
34
34
}
35
35
36
- public function labelProvider (): array
36
+ /**
37
+ * @return array<string, list{string, string}>
38
+ */
39
+ public static function labelProvider (): array
37
40
{
38
41
return [
39
42
'pet_shop ' => ['ペット ショップ ' , 'PettoShoppu ' ],
@@ -65,7 +68,10 @@ public function testNormalizeUsesCase(WordCase $case, string $expected): void
65
68
self ::assertSame ($ expected , $ actual );
66
69
}
67
70
68
- public function caseProvider (): array
71
+ /**
72
+ * @return array<string, list{WordCase, string}>
73
+ */
74
+ public static function caseProvider (): array
69
75
{
70
76
return [
71
77
'camelCase ' => [WordCase::Camel, 'fooBar ' ],
@@ -84,7 +90,10 @@ public function testSpellOutCase(WordCase $case, string $label, string $expected
84
90
self ::assertSame ($ expected , $ actual );
85
91
}
86
92
87
- public function spellOutCaseProvider (): array
93
+ /**
94
+ * @return array<string, list{WordCase, string, string}>
95
+ */
96
+ public static function spellOutCaseProvider (): array
88
97
{
89
98
return [
90
99
'nonascii-before-camelCase ' => [WordCase::Camel, '😫foo ' , 'tiredFaceFoo ' ],
@@ -156,7 +165,10 @@ public function testPrepareSuffixInvalidThrowsException(string $suffix): void
156
165
);
157
166
}
158
167
159
- public function invalidSuffixProvider (): array
168
+ /**
169
+ * @return array<string, list{string}>
170
+ */
171
+ public static function invalidSuffixProvider (): array
160
172
{
161
173
return [
162
174
'empty ' => ['' ],
0 commit comments