Open 4meck opened 3 years ago
dragonmantank\cron-expression (v3.1.0)
$expr = '0 0 1/2 '; $cron = \Cron\CronExpression::factory($expr); echo $cron->getNextRunDate()->format('Y-m-d H:i:s');
InvalidArgumentException in C:\vendor\dragonmantank\cron-expression\src\Cron\CronExpression.phpat line 158 Invalid CRON field value 1/2 at position 2
mtdowling/cron-expression (v. 1.2.3) execute this code correct (w/o Exception)
Hello! Could you please post this PR against dragonmantank/cron-expression, this version of the library is no longer maintained.
Thanks!
dragonmantank\cron-expression (v3.1.0)
$expr = '0 0 1/2 '; $cron = \Cron\CronExpression::factory($expr); echo $cron->getNextRunDate()->format('Y-m-d H:i:s');
InvalidArgumentException in C:\vendor\dragonmantank\cron-expression\src\Cron\CronExpression.phpat line 158 Invalid CRON field value 1/2 at position 2
mtdowling/cron-expression (v. 1.2.3) execute this code correct (w/o Exception)