Skip to content
Permalink
Browse files

Revert explicit type hint, rely on doc block hint instead.

  • Loading branch information...
ndm2
ndm2 committed Sep 24, 2015
1 parent 440c817 commit 21b6317ceac410ed0b39d15a80103f371ff296aa
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/I18n/Time.php
@@ -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);

0 comments on commit 21b6317

Please sign in to comment.
You can’t perform that action at this time.