@@ -46,7 +46,7 @@ public function testCreateFromEmptyString()
46
46
/**
47
47
* @dataProvider provideBytesAt
48
48
*/
49
- public function testBytesAt (array $ expected , string $ string , int $ offset , int $ form = null )
49
+ public function testBytesAt (array $ expected , string $ string , int $ offset , ? int $ form = null )
50
50
{
51
51
if (2 !== grapheme_strlen ('च्छे ' ) && 'नमस्ते ' === $ string ) {
52
52
$ this ->markTestSkipped ('Skipping due to issue ICU-21661. ' );
@@ -319,7 +319,7 @@ public static function provideIndexOfLastIgnoreCase(): array
319
319
/**
320
320
* @dataProvider provideSplit
321
321
*/
322
- public function testSplit (string $ string , string $ delimiter , array $ chunks , ?int $ limit , int $ flags = null )
322
+ public function testSplit (string $ string , string $ delimiter , array $ chunks , ?int $ limit , ? int $ flags = null )
323
323
{
324
324
$ this ->assertEquals ($ chunks , static ::createFromString ($ string )->split ($ delimiter , $ limit , $ flags ));
325
325
}
@@ -595,7 +595,7 @@ public static function provideTitle()
595
595
/**
596
596
* @dataProvider provideSlice
597
597
*/
598
- public function testSlice (string $ expected , string $ origin , int $ start , int $ length = null )
598
+ public function testSlice (string $ expected , string $ origin , int $ start , ? int $ length = null )
599
599
{
600
600
$ this ->assertEquals (
601
601
static ::createFromString ($ expected ),
@@ -623,7 +623,7 @@ public static function provideSlice()
623
623
/**
624
624
* @dataProvider provideSplice
625
625
*/
626
- public function testSplice (string $ expected , int $ start , int $ length = null )
626
+ public function testSplice (string $ expected , int $ start , ? int $ length = null )
627
627
{
628
628
$ this ->assertEquals (
629
629
static ::createFromString ($ expected ),
@@ -1081,7 +1081,7 @@ public static function provideSnake()
1081
1081
/**
1082
1082
* @dataProvider provideStartsWith
1083
1083
*/
1084
- public function testStartsWith (bool $ expected , string $ origin , $ prefix , int $ form = null )
1084
+ public function testStartsWith (bool $ expected , string $ origin , $ prefix , ? int $ form = null )
1085
1085
{
1086
1086
$ instance = static ::createFromString ($ origin );
1087
1087
$ instance = $ form ? $ instance ->normalize ($ form ) : $ instance ;
@@ -1135,7 +1135,7 @@ public static function provideStartsWithIgnoreCase()
1135
1135
/**
1136
1136
* @dataProvider provideEndsWith
1137
1137
*/
1138
- public function testEndsWith (bool $ expected , string $ origin , $ suffix , int $ form = null )
1138
+ public function testEndsWith (bool $ expected , string $ origin , $ suffix , ? int $ form = null )
1139
1139
{
1140
1140
$ instance = static ::createFromString ($ origin );
1141
1141
$ instance = $ form ? $ instance ->normalize ($ form ) : $ instance ;
0 commit comments