Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added DatetIme type hint for get() arguments. #4

Merged
merged 1 commit into from

2 participants

@coderbyheart

This clarifies that the get() method accepts DateTime objects.

@cweiske cweiske merged commit 18a94f0 into pear:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 29, 2012
  1. @coderbyheart
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Date/HumanDiff.php
View
4 src/Date/HumanDiff.php
@@ -84,8 +84,8 @@ public function __construct()
/**
* Generate a human readable time difference.
*
- * @param int $timestamp Timestamp to get difference to
- * @param int $reference Reference timestamp to get difference from.
+ * @param int|DateTime $timestamp Timestamp to get difference to
+ * @param int|DateTime $reference Reference timestamp to get difference from.
* If omitted, it's set to the current time.
*
* @return string Human readable time difference ("a week ago")
Something went wrong with that request. Please try again.