Skip to content

Commit

Permalink
Add third argument to diffForHumans to match Carbon\Carbon
Browse files Browse the repository at this point in the history
Carbon\Carbon::diffForHumans(Carbon\Carbon $other = NULL, $absolute = false, $short = false) has a new third argument and lack of it in Jenssegers\Date\Date::diffForHumans is not playing nicely.
  • Loading branch information
zenekp committed Aug 15, 2016
1 parent c96f12c commit 7c4dd4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static function createFromFormat($format, $time, $timezone = null)
* @param bool $absolute Removes time difference modifiers ago, after, etc
* @return string
*/
public function diffForHumans(Carbon $since = null, $absolute = false)
public function diffForHumans(Carbon $since = null, $absolute = false, $short = false)
{
// Get translator
$lang = $this->getTranslator();
Expand Down

0 comments on commit 7c4dd4f

Please sign in to comment.