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

Composer Autoloader - Not Working (>= 1.6.0) #166

Closed laurinkeithdavis closed 6 years ago

laurinkeithdavis commented 6 years ago

As of Composer 1.6.0, autoloader does not work. I've confirmed in Composer 1.5.6 and 1.6.0-RC, it works, but in 1.6.0, this fails to load.

https://github.com/composer/composer/compare/1.6.0-RC...1.6.0

"Class 'Cron\CronExpression' not found"

Using CronExpression 1.2.1.

staabm commented 6 years ago

1.6.1 was already released with a autoload tweek.. does this work for you?

laurinkeithdavis commented 6 years ago

No, sorry - I should have said I tested all versions from 1.5.6 to 1.6.1 and the failure occurs in release 1.6.0.

laurinkeithdavis commented 6 years ago

FYI, I have 2 packages failing:

https://github.com/PHPMailer/PHPMailer/issues/1316

laurinkeithdavis commented 6 years ago

Oh, duh:

https://github.com/composer/composer/issues/6977

dragonmantank commented 6 years ago

Looks like Composer 1.6.2 should fix the issue. Thanks for bringing this to my attention!