From 2c844277d8d8e981bede080ad1795418eaacdb40 Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Fri, 20 Dec 2024 09:33:00 +1100 Subject: [PATCH 1/2] Fix day range --- src/Illuminate/Console/Scheduling/ManagesFrequencies.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Illuminate/Console/Scheduling/ManagesFrequencies.php b/src/Illuminate/Console/Scheduling/ManagesFrequencies.php index d3ffd79841a..8c1914f6c39 100644 --- a/src/Illuminate/Console/Scheduling/ManagesFrequencies.php +++ b/src/Illuminate/Console/Scheduling/ManagesFrequencies.php @@ -525,7 +525,7 @@ public function monthly() /** * Schedule the event to run monthly on a given day and time. * - * @param int<0, 31> $dayOfMonth + * @param int<1, 31> $dayOfMonth * @param string $time * @return $this */ @@ -539,8 +539,8 @@ public function monthlyOn($dayOfMonth = 1, $time = '0:0') /** * Schedule the event to run twice monthly at a given time. * - * @param int $first<0, 31> - * @param int $second<0, 31> + * @param int $first<1, 31> + * @param int $second<1, 31> * @param string $time * @return $this */ @@ -611,7 +611,7 @@ public function yearly() * Schedule the event to run yearly on a given month, day, and time. * * @param int $month - * @param int<0, 31>|string $dayOfMonth + * @param int<1, 31>|string $dayOfMonth * @param string $time * @return $this */ From 89f923ffb21f71d1e632bb078ed5f5e5680bbe79 Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Fri, 20 Dec 2024 09:36:37 +1100 Subject: [PATCH 2/2] Formatting --- src/Illuminate/Console/Scheduling/ManagesFrequencies.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Console/Scheduling/ManagesFrequencies.php b/src/Illuminate/Console/Scheduling/ManagesFrequencies.php index 8c1914f6c39..651767aaf7c 100644 --- a/src/Illuminate/Console/Scheduling/ManagesFrequencies.php +++ b/src/Illuminate/Console/Scheduling/ManagesFrequencies.php @@ -539,8 +539,8 @@ public function monthlyOn($dayOfMonth = 1, $time = '0:0') /** * Schedule the event to run twice monthly at a given time. * - * @param int $first<1, 31> - * @param int $second<1, 31> + * @param int<1, 31> $first + * @param int<1, 31> $second * @param string $time * @return $this */