mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-13 08:44:01 +02:00
Stringy::create str defaults to empty string
This commit is contained in:
@@ -60,7 +60,7 @@ class Stringy implements \Countable, \IteratorAggregate, \ArrayAccess
|
|||||||
* @throws \InvalidArgumentException if an array or object without a
|
* @throws \InvalidArgumentException if an array or object without a
|
||||||
* __toString method is passed as the first argument
|
* __toString method is passed as the first argument
|
||||||
*/
|
*/
|
||||||
public static function create($str, $encoding = null)
|
public static function create($str = '', $encoding = null)
|
||||||
{
|
{
|
||||||
return new static($str, $encoding);
|
return new static($str, $encoding);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user