@@ -19,47 +19,47 @@ class Php84Test extends TestCase
1919 /**
2020 * @dataProvider ucFirstDataProvider
2121 */
22- public function testMbUcFirst (string $ string , string $ expected ): void
22+ public function testMbUcFirst (string $ string , string $ expected )
2323 {
2424 $ this ->assertSame ($ expected , mb_ucfirst ($ string ));
2525 }
2626
2727 /**
2828 * @dataProvider lcFirstDataProvider
2929 */
30- public function testMbLcFirst (string $ string , string $ expected ): void
30+ public function testMbLcFirst (string $ string , string $ expected )
3131 {
3232 $ this ->assertSame ($ expected , mb_lcfirst ($ string ));
3333 }
3434
3535 /**
3636 * @dataProvider arrayFindDataProvider
3737 */
38- public function testArrayFind (array $ array , callable $ callback , $ expected ): void
38+ public function testArrayFind (array $ array , callable $ callback , $ expected )
3939 {
4040 $ this ->assertSame ($ expected , array_find ($ array , $ callback ));
4141 }
4242
4343 /**
4444 * @dataProvider arrayFindKeyDataProvider
4545 */
46- public function testArrayFindKey (array $ array , callable $ callback , $ expected ): void
46+ public function testArrayFindKey (array $ array , callable $ callback , $ expected )
4747 {
4848 $ this ->assertSame ($ expected , array_find_key ($ array , $ callback ));
4949 }
5050
5151 /**
5252 * @dataProvider arrayAnyDataProvider
5353 */
54- public function testArrayAny (array $ array , callable $ callback , bool $ expected ): void
54+ public function testArrayAny (array $ array , callable $ callback , bool $ expected )
5555 {
5656 $ this ->assertSame ($ expected , array_any ($ array , $ callback ));
5757 }
5858
5959 /**
6060 * @dataProvider arrayAllDataProvider
6161 */
62- public function testArrayAll (array $ array , callable $ callback , bool $ expected ): void
62+ public function testArrayAll (array $ array , callable $ callback , bool $ expected )
6363 {
6464 $ this ->assertSame ($ expected , array_all ($ array , $ callback ));
6565 }
@@ -188,7 +188,7 @@ public static function arrayAllDataProvider(): array
188188 *
189189 * @dataProvider mbTrimProvider
190190 */
191- public function testMbTrim (string $ expected , string $ string , ?string $ characters = null , ?string $ encoding = null ): void
191+ public function testMbTrim (string $ expected , string $ string , ?string $ characters = null , ?string $ encoding = null )
192192 {
193193 $ this ->assertSame ($ expected , mb_trim ($ string , $ characters , $ encoding ));
194194 }
@@ -198,7 +198,7 @@ public function testMbTrim(string $expected, string $string, ?string $characters
198198 *
199199 * @dataProvider mbLTrimProvider
200200 */
201- public function testMbLTrim (string $ expected , string $ string , ?string $ characters = null , ?string $ encoding = null ): void
201+ public function testMbLTrim (string $ expected , string $ string , ?string $ characters = null , ?string $ encoding = null )
202202 {
203203 $ this ->assertSame ($ expected , mb_ltrim ($ string , $ characters , $ encoding ));
204204 }
@@ -208,25 +208,25 @@ public function testMbLTrim(string $expected, string $string, ?string $character
208208 *
209209 * @dataProvider mbRTrimProvider
210210 */
211- public function testMbRTrim (string $ expected , string $ string , ?string $ characters = null , ?string $ encoding = null ): void
211+ public function testMbRTrim (string $ expected , string $ string , ?string $ characters = null , ?string $ encoding = null )
212212 {
213213 $ this ->assertSame ($ expected , mb_rtrim ($ string , $ characters , $ encoding ));
214214 }
215215
216- public function testMbTrimException (): void
216+ public function testMbTrimException ()
217217 {
218218 $ this ->expectException (\ValueError::class);
219219 mb_trim ("\u{180F}" , '' , 'NULL ' );
220220 }
221221
222- public function testMbTrimEncoding (): void
222+ public function testMbTrimEncoding ()
223223 {
224224 $ this ->assertSame ('あ ' , mb_convert_encoding (mb_trim ("\x81\x40\x82\xa0\x81\x40" , "\x81\x40" , 'SJIS ' ), 'UTF-8 ' , 'SJIS ' ));
225225 $ this ->assertSame ('226f575b ' , bin2hex (mb_ltrim (mb_convert_encoding ("\u{FFFE}漢字 " , 'UTF-16LE ' , 'UTF-8 ' ), mb_convert_encoding ("\u{FFFE}\u{FEFF}" , 'UTF-16LE ' , 'UTF-8 ' ), 'UTF-16LE ' )));
226226 $ this ->assertSame ('6f225b57 ' , bin2hex (mb_ltrim (mb_convert_encoding ("\u{FEFF}漢字 " , 'UTF-16BE ' , 'UTF-8 ' ), mb_convert_encoding ("\u{FFFE}\u{FEFF}" , 'UTF-16BE ' , 'UTF-8 ' ), 'UTF-16BE ' )));
227227 }
228228
229- public function testMbTrimCharactersEncoding (): void
229+ public function testMbTrimCharactersEncoding ()
230230 {
231231 $ strUtf8 = "\u{3042}\u{3000}" ;
232232
0 commit comments