@@ -46,7 +46,7 @@ public function testCreateFromEmptyString()
4646 /**
4747 * @dataProvider provideBytesAt
4848 */
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 )
5050 {
5151 if (2 !== grapheme_strlen ('च्छे ' ) && 'नमस्ते ' === $ string ) {
5252 $ this ->markTestSkipped ('Skipping due to issue ICU-21661. ' );
@@ -319,7 +319,7 @@ public static function provideIndexOfLastIgnoreCase(): array
319319 /**
320320 * @dataProvider provideSplit
321321 */
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 )
323323 {
324324 $ this ->assertEquals ($ chunks , static ::createFromString ($ string )->split ($ delimiter , $ limit , $ flags ));
325325 }
@@ -595,7 +595,7 @@ public static function provideTitle()
595595 /**
596596 * @dataProvider provideSlice
597597 */
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 )
599599 {
600600 $ this ->assertEquals (
601601 static ::createFromString ($ expected ),
@@ -623,7 +623,7 @@ public static function provideSlice()
623623 /**
624624 * @dataProvider provideSplice
625625 */
626- public function testSplice (string $ expected , int $ start , int $ length = null )
626+ public function testSplice (string $ expected , int $ start , ? int $ length = null )
627627 {
628628 $ this ->assertEquals (
629629 static ::createFromString ($ expected ),
@@ -1083,7 +1083,7 @@ public static function provideSnake()
10831083 /**
10841084 * @dataProvider provideStartsWith
10851085 */
1086- public function testStartsWith (bool $ expected , string $ origin , $ prefix , int $ form = null )
1086+ public function testStartsWith (bool $ expected , string $ origin , $ prefix , ? int $ form = null )
10871087 {
10881088 $ instance = static ::createFromString ($ origin );
10891089 $ instance = $ form ? $ instance ->normalize ($ form ) : $ instance ;
@@ -1137,7 +1137,7 @@ public static function provideStartsWithIgnoreCase()
11371137 /**
11381138 * @dataProvider provideEndsWith
11391139 */
1140- public function testEndsWith (bool $ expected , string $ origin , $ suffix , int $ form = null )
1140+ public function testEndsWith (bool $ expected , string $ origin , $ suffix , ? int $ form = null )
11411141 {
11421142 $ instance = static ::createFromString ($ origin );
11431143 $ instance = $ form ? $ instance ->normalize ($ form ) : $ instance ;
0 commit comments