Releases: dragonmantank/cron-expression
Releases · dragonmantank/cron-expression
v3.1.0
v3.0.2
v2.3.1
v3.0.1
v3.0.0
MAJOR CHANGE - In previous versions of this library, setting both a "Day of Month" and a "Day of Week" would be interpreted as an AND
statement, not an OR
statement. For example:
30 0 1 * 1
would evaluate to "Run 30 minutes after the 0 hour when the Day Of Month is 1 AND a Monday" instead of "Run 30 minutes after the 0 hour on Day Of Month 1 OR a Monday", where the latter is more inline with most cron systems. This means that if your cron expression has both of these fields set, you may see your expression fire more often starting with v3.0.0.
Added
- Additional docblocks for IDE and documentation
- Added phpstan as a development dependency
- Added a
Cron\FieldFactoryInterface
to make migrations easier (#38)
Changed
- Changed some DI testing during TravisCI runs
\Cron\CronExpression::determineTimezone()
now checks for\DateTimeInterface
instead of just\DateTime
- Errors with fields now report a more human-understandable error and are 1-based instead of 0-based
- Better support for
\DateTimeImmutable
across the library by typehinting for\DateTimeInterface
now - Literals should now be less case-sensative across the board
- Changed logic for when both a Day of Week and a Day of Month are supplied to now be an OR statement, not an AND
Fixed
- Fixed infinite loop when determining last day of week from literals
- Fixed bug where single number ranges were allowed (ex:
1/10
) - Fixed nullable FieldFactory in CronExpression where no factory could be supplied
- Fixed issue where logic for dropping seconds to 0 could lead to a timezone change