diff --git a/src/Illuminate/Console/Scheduling/ManagesFrequencies.php b/src/Illuminate/Console/Scheduling/ManagesFrequencies.php index cc275f801e1..e312cc40129 100644 --- a/src/Illuminate/Console/Scheduling/ManagesFrequencies.php +++ b/src/Illuminate/Console/Scheduling/ManagesFrequencies.php @@ -147,7 +147,7 @@ public function everyThirtySeconds() /** * Schedule the event to run multiple times per minute. * - * @param int $seconds + * @param int<0, 59> $seconds * @return $this */ protected function repeatEvery($seconds) @@ -254,7 +254,7 @@ public function hourly() /** * Schedule the event to run hourly at a given offset in the hour. * - * @param array|string|int $offset + * @param array|string|int<0, 23>|int<0, 23>[] $offset * @return $this */ public function hourlyAt($offset) @@ -357,8 +357,8 @@ public function dailyAt($time) /** * Schedule the event to run twice daily. * - * @param int $first - * @param int $second + * @param int<0, 23> $first + * @param int<0, 23> $second * @return $this */ public function twiceDaily($first = 1, $second = 13) @@ -369,9 +369,9 @@ public function twiceDaily($first = 1, $second = 13) /** * Schedule the event to run twice daily at a given offset. * - * @param int $first - * @param int $second - * @param int $offset + * @param int<0, 23> $first + * @param int<0, 23> $second + * @param int<0, 59> $offset * @return $this */ public function twiceDailyAt($first = 1, $second = 13, $offset = 0) @@ -384,8 +384,8 @@ public function twiceDailyAt($first = 1, $second = 13, $offset = 0) /** * Schedule the event to run at the given minutes and hours. * - * @param array|string|int $minutes - * @param array|string|int $hours + * @param array|string|int<0, 59> $minutes + * @param array|string|int<0, 23> $hours * @return $this */ protected function hourBasedSchedule($minutes, $hours) @@ -529,7 +529,7 @@ public function monthly() /** * Schedule the event to run monthly on a given day and time. * - * @param int $dayOfMonth + * @param int<0, 31> $dayOfMonth * @param string $time * @return $this */ @@ -543,8 +543,8 @@ public function monthlyOn($dayOfMonth = 1, $time = '0:0') /** * Schedule the event to run twice monthly at a given time. * - * @param int $first - * @param int $second + * @param int $first<0, 31> + * @param int $second<0, 31> * @param string $time * @return $this */ @@ -615,7 +615,7 @@ public function yearly() * Schedule the event to run yearly on a given month, day, and time. * * @param int<1, 12>|\Illuminate\Support\Date\Month $month - * @param int|string $dayOfMonth + * @param int<0, 31>|string $dayOfMonth * @param string $time * @return $this */ diff --git a/src/Illuminate/Support/Facades/Schedule.php b/src/Illuminate/Support/Facades/Schedule.php index 86d36b70a3f..4d1fe7e225d 100644 --- a/src/Illuminate/Support/Facades/Schedule.php +++ b/src/Illuminate/Support/Facades/Schedule.php @@ -50,7 +50,7 @@ * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyFifteenMinutes() * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyThirtyMinutes() * @method static \Illuminate\Console\Scheduling\PendingEventAttributes hourly() - * @method static \Illuminate\Console\Scheduling\PendingEventAttributes hourlyAt(array|string|int $offset) + * @method static \Illuminate\Console\Scheduling\PendingEventAttributes hourlyAt(array|string|int|int[] $offset) * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyOddHour(array|string|int $offset = 0) * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyTwoHours(array|string|int $offset = 0) * @method static \Illuminate\Console\Scheduling\PendingEventAttributes everyThreeHours(array|string|int $offset = 0)