Skip to content

fix(#34): TriggerFactory — Fragile Cron Expression Detection Heuristic#138

Merged
s2x merged 6 commits intomasterfrom
fix/34-triggerfactory-cron-detection
Apr 14, 2026
Merged

fix(#34): TriggerFactory — Fragile Cron Expression Detection Heuristic#138
s2x merged 6 commits intomasterfrom
fix/34-triggerfactory-cron-detection

Conversation

@s2x
Copy link
Copy Markdown
Collaborator

@s2x s2x commented Apr 14, 2026

Summary

  • Replace fragile cron expression heuristic with CronExpression::isValidExpression()
  • Add test case for cron expressions without asterisks (0 0 1 1 1)
  • Add class_exists check for graceful handling when cron library not installed

Test Plan

  • All 284 tests pass (11 skipped - normal)
  • PHPStan: No errors
  • CS Fixer: No issues

Closes #34

@s2x s2x merged commit fb74313 into master Apr 14, 2026
22 checks passed
@s2x s2x deleted the fix/34-triggerfactory-cron-detection branch April 14, 2026 19: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.

TriggerFactory — Fragile Cron Expression Detection Heuristic

1 participant