Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert explicit type hint, rely on doc block hint instead.
  • Loading branch information
ndm2 committed Sep 24, 2015
1 parent 440c817 commit 21b6317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/I18n/Time.php
Expand Up @@ -858,10 +858,10 @@ public static function parseTime($time, $format = null)
/**
* Convenience method for getting the remaining time from a given time.
*
* @param \DateTime $datetime The date to get the remaining time from.
* @param \DateTime|\DateTimeImmutable $datetime The date to get the remaining time from.
* @return \DateInterval|bool The DateInterval object representing the difference between the two dates or FALSE on failure.
*/
public static function fromNow(DateTime $datetime)
public static function fromNow($datetime)
{
$timeNow = new Time();
return $timeNow->diff($datetime);
Expand Down

0 comments on commit 21b6317

Please sign in to comment.