From f6475e1288325a275b85e61d3392949bc266b5f5 Mon Sep 17 00:00:00 2001 From: "Daniel St. Jules" Date: Wed, 2 Sep 2015 23:46:48 -0700 Subject: [PATCH] Stringy::create str defaults to empty string --- src/Stringy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Stringy.php b/src/Stringy.php index 63dcbd8..9473214 100644 --- a/src/Stringy.php +++ b/src/Stringy.php @@ -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); }