Skip to content

Commit

Permalink
Fix first argument
Browse files Browse the repository at this point in the history
  • Loading branch information
etshy committed Mar 3, 2019
1 parent 084be7b commit da2f0b1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Twig/Extension/TimeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ public function getFilters()
);
}

public function diffmax($maxDiff = null, $maxDiffUnit = 'day', $dateFormat = 'd/m/Y')
/**
* @param $date \DateTime first argument, the value we want to display
* @param null $maxDiff
* @param string $dateFormat
* @param string $maxDiffUnit
*/
public function diffmax($date, $maxDiff = null, $dateFormat = 'd/m/Y', $maxDiffUnit = 'day')
{
$this->helper->setMaxDiff($maxDiff);
$this->helper->setMaxDiffUnit($maxDiffUnit);
Expand Down

0 comments on commit da2f0b1

Please sign in to comment.