Skip to content

[11.x] Add PHPDoc type hints#53984

Merged
taylorotwell merged 3 commits intolaravel:11.xfrom
shaedrich:improve-scheduler-phpdocs-type-hints
Dec 19, 2024
Merged

[11.x] Add PHPDoc type hints#53984
taylorotwell merged 3 commits intolaravel:11.xfrom
shaedrich:improve-scheduler-phpdocs-type-hints

Conversation

@shaedrich
Copy link
Copy Markdown
Contributor

see #53961

@taylorotwell taylorotwell merged commit 6797f03 into laravel:11.x Dec 19, 2024
@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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