We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af689cc commit a97458dCopy full SHA for a97458d
ByteString.php
@@ -340,7 +340,7 @@ public function reverse(): static
340
public function slice(int $start = 0, ?int $length = null): static
341
{
342
$str = clone $this;
343
- $str->string = (string) substr($this->string, $start, $length ?? \PHP_INT_MAX);
+ $str->string = substr($this->string, $start, $length ?? \PHP_INT_MAX);
344
345
return $str;
346
}
0 commit comments