@@ -263,7 +263,7 @@ public function replaceMatches(string $fromRegexp, $to): AbstractString
263
263
public function slice (int $ start = 0 , int $ length = null ): AbstractString
264
264
{
265
265
$ 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 );
267
267
268
268
return $ str ;
269
269
}
@@ -272,8 +272,8 @@ public function splice(string $replacement, int $start = 0, int $length = null):
272
272
{
273
273
$ str = clone $ this ;
274
274
$ 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 );
277
277
normalizer_is_normalized ($ str ->string ) ?: $ str ->string = normalizer_normalize ($ str ->string );
278
278
279
279
if (false === $ str ->string ) {
@@ -285,7 +285,7 @@ public function splice(string $replacement, int $start = 0, int $length = null):
285
285
286
286
public function split (string $ delimiter , int $ limit = null , int $ flags = null ): array
287
287
{
288
- if (1 > $ limit = $ limit ?? \ PHP_INT_MAX ) {
288
+ if (1 > $ limit = $ limit ?? PHP_INT_MAX ) {
289
289
throw new InvalidArgumentException ('Split limit must be a positive integer. ' );
290
290
}
291
291
0 commit comments