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 01ff860 commit 35e99c0Copy full SHA for 35e99c0
src/StrMutable.php
@@ -22,10 +22,10 @@ final class StrMutable implements StringInterface
22
* Create a mutable string
23
*
24
* @param string|Stringable $string Initial string value
25
- * @param string $encoding Character encoding to use
+ * @param ?string $encoding Character encoding to use
26
* @return self New mutable string instance
27
*/
28
- public static function create(string|Stringable $string, string $encoding = 'UTF-8'): self
+ public static function create(string|Stringable $string, ?string $encoding = null): self
29
{
30
return new self($string, $encoding);
31
}
0 commit comments