mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-12 08:14:06 +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
|
||||
* __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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user