Skip to content

Commit 995e251

Browse files
authored
feat(docs): fix type hints for DateTimeZone and DateTimeInterface (#55243)
1 parent 9b98cec commit 995e251

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/Illuminate/Support/DateFactory.php

+13-13
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
* @method \Illuminate\Support\Carbon|null createFromLocaleFormat(string $format, string $locale, string $time, $timezone = null)
1818
* @method \Illuminate\Support\Carbon|null createFromLocaleIsoFormat(string $format, string $locale, string $time, $timezone = null)
1919
* @method \Illuminate\Support\Carbon createFromTime($hour = 0, $minute = 0, $second = 0, $timezone = null)
20-
* @method \Illuminate\Support\Carbon createFromTimeString(string $time, DateTimeZone|string|int|null $timezone = null)
21-
* @method \Illuminate\Support\Carbon createFromTimestamp(string|int|float $timestamp, DateTimeZone|string|int|null $timezone = null)
22-
* @method \Illuminate\Support\Carbon createFromTimestampMs(string|int|float $timestamp, DateTimeZone|string|int|null $timezone = null)
20+
* @method \Illuminate\Support\Carbon createFromTimeString(string $time, \DateTimeZone|string|int|null $timezone = null)
21+
* @method \Illuminate\Support\Carbon createFromTimestamp(string|int|float $timestamp, \DateTimeZone|string|int|null $timezone = null)
22+
* @method \Illuminate\Support\Carbon createFromTimestampMs(string|int|float $timestamp, \DateTimeZone|string|int|null $timezone = null)
2323
* @method \Illuminate\Support\Carbon createFromTimestampMsUTC($timestamp)
2424
* @method \Illuminate\Support\Carbon createFromTimestampUTC(string|int|float $timestamp)
2525
* @method \Illuminate\Support\Carbon createMidnightDate($year = null, $month = null, $day = null, $timezone = null)
@@ -51,7 +51,7 @@
5151
* @method bool hasMacro($name)
5252
* @method bool hasRelativeKeywords(?string $time)
5353
* @method bool hasTestNow()
54-
* @method \Illuminate\Support\Carbon instance(DateTimeInterface $date)
54+
* @method \Illuminate\Support\Carbon instance(\DateTimeInterface $date)
5555
* @method bool isImmutable()
5656
* @method bool isModifiableUnit($unit)
5757
* @method bool isMutable()
@@ -62,14 +62,14 @@
6262
* @method bool localeHasPeriodSyntax($locale)
6363
* @method bool localeHasShortUnits(string $locale)
6464
* @method void macro(string $name, ?callable $macro)
65-
* @method \Illuminate\Support\Carbon|null make($var, DateTimeZone|string|null $timezone = null)
65+
* @method \Illuminate\Support\Carbon|null make($var, \DateTimeZone|string|null $timezone = null)
6666
* @method void mixin(object|string $mixin)
67-
* @method \Illuminate\Support\Carbon now(DateTimeZone|string|int|null $timezone = null)
68-
* @method \Illuminate\Support\Carbon parse(DateTimeInterface|WeekDay|Month|string|int|float|null $time, DateTimeZone|string|int|null $timezone = null)
69-
* @method \Illuminate\Support\Carbon parseFromLocale(string $time, ?string $locale = null, DateTimeZone|string|int|null $timezone = null)
67+
* @method \Illuminate\Support\Carbon now(\DateTimeZone|string|int|null $timezone = null)
68+
* @method \Illuminate\Support\Carbon parse(\DateTimeInterface|WeekDay|Month|string|int|float|null $time, \DateTimeZone|string|int|null $timezone = null)
69+
* @method \Illuminate\Support\Carbon parseFromLocale(string $time, ?string $locale = null, \DateTimeZone|string|int|null $timezone = null)
7070
* @method string pluralUnit(string $unit)
7171
* @method \Illuminate\Support\Carbon|null rawCreateFromFormat(string $format, string $time, $timezone = null)
72-
* @method \Illuminate\Support\Carbon rawParse(DateTimeInterface|WeekDay|Month|string|int|float|null $time, DateTimeZone|string|int|null $timezone = null)
72+
* @method \Illuminate\Support\Carbon rawParse(\DateTimeInterface|WeekDay|Month|string|int|float|null $time, \DateTimeZone|string|int|null $timezone = null)
7373
* @method void resetMonthsOverflow()
7474
* @method void resetToStringFormat()
7575
* @method void resetYearsOverflow()
@@ -89,16 +89,16 @@
8989
* @method bool shouldOverflowYears()
9090
* @method string singularUnit(string $unit)
9191
* @method void sleep(int|float $seconds)
92-
* @method \Illuminate\Support\Carbon today(DateTimeZone|string|int|null $timezone = null)
93-
* @method \Illuminate\Support\Carbon tomorrow(DateTimeZone|string|int|null $timezone = null)
92+
* @method \Illuminate\Support\Carbon today(\DateTimeZone|string|int|null $timezone = null)
93+
* @method \Illuminate\Support\Carbon tomorrow(\DateTimeZone|string|int|null $timezone = null)
9494
* @method string translateTimeString(string $timeString, ?string $from = null, ?string $to = null, int $mode = CarbonInterface::TRANSLATE_ALL)
9595
* @method string translateWith(TranslatorInterface $translator, string $key, array $parameters = [], $number = null)
9696
* @method void useMonthsOverflow($monthsOverflow = true)
9797
* @method void useStrictMode($strictModeEnabled = true)
9898
* @method void useYearsOverflow($yearsOverflow = true)
9999
* @method mixed withTestNow(mixed $testNow, callable $callback)
100-
* @method static withTimeZone(DateTimeZone|string|int|null $timezone)
101-
* @method \Illuminate\Support\Carbon yesterday(DateTimeZone|string|int|null $timezone = null)
100+
* @method static withTimeZone(\DateTimeZone|string|int|null $timezone)
101+
* @method \Illuminate\Support\Carbon yesterday(\DateTimeZone|string|int|null $timezone = null)
102102
*/
103103
class DateFactory
104104
{

0 commit comments

Comments
 (0)