Skip to content

Commit

Permalink
Document month constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
shaedrich authored Dec 19, 2024
1 parent 00a80c5 commit b1347e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Console/Scheduling/ManagesFrequencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ public function weekly()
/**
* Schedule the event to run weekly on a given day and time.
*
* @param \Illuminate\Support\Date\Day[]|\Illuminate\Support\Date\Day|array|int|int[]|mixed $dayOfWeek
* @param \Illuminate\Support\Date\Day[]|\Illuminate\Support\Date\Day|array|int<0, 6>|int<0, 6>[]|mixed $dayOfWeek
* @param string $time
* @return $this
*/
Expand Down Expand Up @@ -614,7 +614,7 @@ public function yearly()
/**
* Schedule the event to run yearly on a given month, day, and time.
*
* @param int|\Illuminate\Support\Date\Month $month
* @param int<1, 12>|\Illuminate\Support\Date\Month $month
* @param int|string $dayOfMonth
* @param string $time
* @return $this
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes quarterly()
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes quarterlyOn(int $dayOfQuarter = 1, string $time = '0:0')
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes yearly()
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes yearlyOn(int $month = 1, int|string $dayOfMonth = 1, string $time = '0:0')
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes yearlyOn(int<1, 12>|\Illuminate\Support\Date\Month $month = 1, int|string $dayOfMonth = 1, string $time = '0:0')
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes days(array|\Illuminate\Support\Date\Day|Illuminate\Support\Date\Day[]|int<0, 6>|int<0, 6>[]|string|string[]|mixed $days)
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes timezone(\DateTimeZone|string $timezone)
*
Expand Down

0 comments on commit b1347e5

Please sign in to comment.