Skip to content

Conversation

@alipowerful7
Copy link
Contributor

@alipowerful7 alipowerful7 commented Jan 6, 2026

continuation of #58283

add @throws \InvalidArgumentException to dock blocks

@alipowerful7 alipowerful7 changed the title [12.x] Fix: add @throws \InvalidArgumentException to some dock block [12.x] Fix: add @throws \InvalidArgumentException to some dock block Jan 6, 2026
Comment on lines 940 to +942
* @return static
*
* @throws \InvalidArgumentException
Copy link
Contributor

Choose a reason for hiding this comment

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

You can even narrow the return here:

Suggested change
* @return static
*
* @throws \InvalidArgumentException
* @return ($step is positive-int ? static : never)
*
* @throws \InvalidArgumentException

@taylorotwell taylorotwell merged commit 5425209 into laravel:12.x Jan 6, 2026
72 checks passed
@alipowerful7 alipowerful7 deleted the fix/dock-block branch January 6, 2026 15:03
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