Skip to content

[12.x] Fix spliceIntoPosition docblock to allow string|int values #56698

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

Merged

Conversation

amirhshokri
Copy link
Contributor

@amirhshokri amirhshokri commented Aug 20, 2025

The spliceIntoPosition method in src/Illuminate/Console/Scheduling/ManagesFrequencies.php can accept both strings and integers as value.

Example:

public function quarterly()
{
return $this->spliceIntoPosition(1, 0)
->spliceIntoPosition(2, 0)
->spliceIntoPosition(3, 1)
->spliceIntoPosition(4, '1-12/3');
}

@taylorotwell taylorotwell merged commit 7d7fe23 into laravel:12.x Aug 21, 2025
62 checks passed
@amirhshokri amirhshokri deleted the 12.x-fix-spliceIntoPosition-docblock branch August 21, 2025 14:40
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.

2 participants