X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMWTimestamp.php;h=d28169f388e1e46120322bf269f9ed1891d8dd9f;hb=3842fd20799f80116b3a32b601ec67e97b71bae8;hp=c1e5cc410bcde40a70914277a3bf4ad039a8f510;hpb=32628487e17c27f3437d44bd54edb8438e837b82;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 */