@@ -263,7 +263,7 @@ public function replaceMatches(string $fromRegexp, $to): AbstractString
263263 public function slice (int $ start = 0 , int $ length = null ): AbstractString
264264 {
265265 $ str = clone $ this ;
266- $ str ->string = (string ) grapheme_substr ($ this ->string , $ start , $ length ?? \ PHP_INT_MAX );
266+ $ str ->string = (string ) grapheme_substr ($ this ->string , $ start , $ length ?? PHP_INT_MAX );
267267
268268 return $ str ;
269269 }
@@ -272,8 +272,8 @@ public function splice(string $replacement, int $start = 0, int $length = null):
272272 {
273273 $ str = clone $ this ;
274274 $ start = $ start ? \strlen (grapheme_substr ($ this ->string , 0 , $ start )) : 0 ;
275- $ length = $ length ? \strlen (grapheme_substr ($ this ->string , $ start , $ length ?? \ PHP_INT_MAX )) : $ length ;
276- $ str ->string = substr_replace ($ this ->string , $ replacement , $ start , $ length ?? \ PHP_INT_MAX );
275+ $ length = $ length ? \strlen (grapheme_substr ($ this ->string , $ start , $ length ?? PHP_INT_MAX )) : $ length ;
276+ $ str ->string = substr_replace ($ this ->string , $ replacement , $ start , $ length ?? PHP_INT_MAX );
277277 normalizer_is_normalized ($ str ->string ) ?: $ str ->string = normalizer_normalize ($ str ->string );
278278
279279 if (false === $ str ->string ) {
@@ -285,7 +285,7 @@ public function splice(string $replacement, int $start = 0, int $length = null):
285285
286286 public function split (string $ delimiter , int $ limit = null , int $ flags = null ): array
287287 {
288- if (1 > $ limit = $ limit ?? \ PHP_INT_MAX ) {
288+ if (1 > $ limit = $ limit ?? PHP_INT_MAX ) {
289289 throw new InvalidArgumentException ('Split limit must be a positive integer. ' );
290290 }
291291
0 commit comments