From c2ff0fb6563c7d84b3923a04d1a90051b2d5d164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Thu, 12 Sep 2019 14:07:48 +0200 Subject: [PATCH] Fix: Add allowed type DateTime to param annotation (#1697) --- src/Faker/Provider/DateTime.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Faker/Provider/DateTime.php b/src/Faker/Provider/DateTime.php index fb0f474b2a..bde7f251eb 100644 --- a/src/Faker/Provider/DateTime.php +++ b/src/Faker/Provider/DateTime.php @@ -9,7 +9,7 @@ class DateTime extends Base protected static $defaultTimezone = null; /** - * @param string|float|int $max + * @param \DateTime|string|float|int $max * @return int|false */ protected static function getMaxTimestamp($max = 'now') @@ -147,7 +147,7 @@ public static function dateTimeBetween($startDate = '-30 years', $endDate = 'now * an interval * Accepts date string that can be recognized by strtotime(). * - * @param string $date Defaults to 30 years ago + * @param \DateTime|string $date Defaults to 30 years ago * @param string $interval Defaults to 5 days after * @param string|null $timezone time zone in which the date time should be set, default to DateTime::$defaultTimezone, if set, otherwise the result of `date_default_timezone_get` * @example dateTimeInInterval('1999-02-02 11:42:52', '+ 5 days')