File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ private function output()
9999 return $ out ;
100100 }
101101
102- public function toSeconds ($ timeStr )
102+ public function toSeconds ($ timeStr = null )
103103 {
104104 if (! is_null ($ timeStr )) {
105105 $ this ->parse ($ timeStr );
@@ -110,7 +110,7 @@ public function toSeconds($timeStr)
110110 return $ this ->output ();
111111 }
112112
113- public function formatted ($ timeStr )
113+ public function formatted ($ timeStr = null )
114114 {
115115 if (! is_null ($ timeStr )) {
116116 $ this ->parse ($ timeStr );
@@ -147,7 +147,7 @@ public function formatted($timeStr)
147147 return $ this ->output ();
148148 }
149149
150- public function humanize ($ timeStr )
150+ public function humanize ($ timeStr = null )
151151 {
152152 if (! is_null ($ timeStr )) {
153153 $ this ->parse ($ timeStr );
You can’t perform that action at this time.
0 commit comments