mtdowling / cron-expression

CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due
http://mtdowling.com/blog/2012/06/03/cron-expressions-in-php/
MIT License
4.9k stars 335 forks source link

Fix DayOfMonthField validation for just 'L' #159

Closed danielsantiago closed 6 years ago

danielsantiago commented 7 years ago

Right now we can't use 'L' or 'W' for the DayOfMonthField. We get the following error:

Fatal error: Uncaught InvalidArgumentException: Invalid CRON field value L at position 2 in vendor/mtdowling/cron-expression/src/Cron/CronExpression.php on line 154

This pull request solve this problem

NOTE: I redo the pull request to clean the commits Reference to: https://github.com/mtdowling/cron-expression/pull/157

dragonmantank commented 6 years ago

Thanks for the update. This is merged in!