1
0
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:
Daniel St. Jules
2015-09-02 23:46:48 -07:00
parent ff36c79892
commit f6475e1288

View File

@@ -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);
}