Skip to content

Fix weekday constraints when chaining every* methods#124

Open
eyupcanakman wants to merge 4 commits intocrunzphp:3.9from
eyupcanakman:fix/issue-105-weekday-between
Open

Fix weekday constraints when chaining every* methods#124
eyupcanakman wants to merge 4 commits intocrunzphp:3.9from
eyupcanakman:fix/issue-105-weekday-between

Conversation

@eyupcanakman
Copy link
Contributor

Q A
Fixed tickets #105

Calling weekday helpers before every* methods currently resets day-of-week to *, so chains like:

$task->mondays()->everyFiveMinutes()->between('08:00', '17:00')

lose the weekday constraint.

This change preserves the current day-of-week segment when every* methods apply expressions with wildcard weekday, so weekday + between() chains work correctly regardless of call order.

Adds unit coverage to ensure all every* helpers keep an existing weekday constraint.

@eyupcanakman eyupcanakman force-pushed the fix/issue-105-weekday-between branch from 03afd3e to 17b5ae8 Compare February 25, 2026 11:48
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.

1 participant