Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CronExpression deprecation using constructor instead of factory method #118

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

bastien-phi
Copy link
Contributor

CronExpression::factory is deprecated since dragonmantank/cron-expression 3.0.2. This package supports Laravel 9 which uses dragonmantank/cron-expression: ^3.1 so upgrading CronExpression::factory($this->cronExpression()) to (new CronExpression($this->cronExpression())) should not be an issue

@freekmurze freekmurze merged commit 8e884c8 into spatie:main Jan 17, 2025
22 checks passed
@freekmurze
Copy link
Member

Thanks!

@bastien-phi bastien-phi deleted the fix-cron-expression-deprecation branch January 17, 2025 09:36
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.

2 participants