Skip to content

Commit 35e99c0

Browse files
authored
Update StrMutable.php
1 parent 01ff860 commit 35e99c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/StrMutable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ final class StrMutable implements StringInterface
2222
* Create a mutable string
2323
*
2424
* @param string|Stringable $string Initial string value
25-
* @param string $encoding Character encoding to use
25+
* @param ?string $encoding Character encoding to use
2626
* @return self New mutable string instance
2727
*/
28-
public static function create(string|Stringable $string, string $encoding = 'UTF-8'): self
28+
public static function create(string|Stringable $string, ?string $encoding = null): self
2929
{
3030
return new self($string, $encoding);
3131
}

0 commit comments

Comments
 (0)