More fixes

This commit is contained in:
Graham Campbell
2016-02-02 20:46:46 +00:00
parent 4923a59b76
commit 921116a198
5 changed files with 51 additions and 25 deletions
+2 -2
View File
@@ -78,13 +78,13 @@ class DateFactory
/**
* Make a Carbon instance from a string.
*
* @param string $time
* @param string|null $time
*
* @throws \InvalidArgumentException
*
* @return \Carbon\Carbon
*/
public function make($time)
public function make($time = null)
{
return (new Date($time))->setTimezone($this->cachetTimezone);
}