Skip to content

Commit a97458d

Browse files
Remove useless code
1 parent af689cc commit a97458d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ByteString.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ public function reverse(): static
340340
public function slice(int $start = 0, ?int $length = null): static
341341
{
342342
$str = clone $this;
343-
$str->string = (string) substr($this->string, $start, $length ?? \PHP_INT_MAX);
343+
$str->string = substr($this->string, $start, $length ?? \PHP_INT_MAX);
344344

345345
return $str;
346346
}

0 commit comments

Comments
 (0)