Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Add PHPDoc type hints #53984

Merged

Conversation

shaedrich
Copy link
Contributor

see #53961

@taylorotwell taylorotwell merged commit 6797f03 into laravel:11.x Dec 19, 2024
38 checks passed
@shaedrich shaedrich deleted the improve-scheduler-phpdocs-type-hints branch December 19, 2024 21:54
Comment on lines -76 to +77
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes monthlyOn(int $dayOfMonth = 1, string $time = '0:0')
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes twiceMonthly(int $first = 1, int $second = 16, string $time = '0:0')
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes monthlyOn(int<0, 31> $dayOfMonth = 1, string $time = '0:0')
* @method static \Illuminate\Console\Scheduling\PendingEventAttributes twiceMonthly(int<0, 31> $first = 1, int<0, 31> $second = 16, string $time = '0:0')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is a zero based month index, should the range be 1-31? Or does 0 do something special here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn, you are right 👍🏻 My bad 🤦🏻 😅

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll send a fix.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simon-tma added a commit to simon-tma/framework that referenced this pull request Jan 2, 2025
Fixes the incorrect minutes range introduced in laravel#53984.
taylorotwell pushed a commit that referenced this pull request Jan 2, 2025
Fixes the incorrect minutes range introduced in #53984.
@shaedrich shaedrich changed the title Add PHPDoc type hints [11.x] Add PHPDoc type hints Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants