X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FMWTimestamp.php;h=d28169f388e1e46120322bf269f9ed1891d8dd9f;hb=4b75063d0eafeb9260f177cde782156a81b56f6b;hp=c1e5cc410bcde40a70914277a3bf4ad039a8f510;hpb=59e7337ea612d03d08b67e6ada707e3d7ced738d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MWTimestamp.php b/includes/MWTimestamp.php index c1e5cc410b..d28169f388 100644 --- a/includes/MWTimestamp.php +++ b/includes/MWTimestamp.php @@ -21,6 +21,7 @@ * @since 1.20 * @author Tyler Romeo, 2012 */ +use Wikimedia\Timestamp\ConvertibleTimestamp; /** * Library for creating and parsing MW-style timestamps. Based on the JS @@ -137,9 +138,9 @@ class MWTimestamp extends ConvertibleTimestamp { * Generate a purely relative timestamp, i.e., represent the time elapsed between * the given base timestamp and this object. * - * @param MWTimestamp $relativeTo Relative base timestamp (defaults to now) - * @param User $user Use to use offset for - * @param Language $lang Language to use + * @param MWTimestamp|null $relativeTo Relative base timestamp (defaults to now) + * @param User|null $user Use to use offset for + * @param Language|null $lang Language to use * @param array $chosenIntervals Intervals to use to represent it * @return string Relative timestamp */