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

Breaking change in version 4 #52

Open
garak opened this issue Jan 8, 2024 · 0 comments
Open

Breaking change in version 4 #52

garak opened this issue Jan 8, 2024 · 0 comments

Comments

@garak
Copy link

garak commented Jan 8, 2024

Updating from version 3 to version 4, I got the following exception:

In AnnotationLineConfigurator.php line 18:

[Error]
Typed property MyBuilder\Bundle\CronosBundle\Annotation\Cron::$hour must not be accessed before initialization

This is because now the property is typed and has no default value.
So, the following annotation stops working: @Cron(minute="/15")

I worked around it by explicating a * value for the hour, but this should made back-compatible OR noted in a changelog file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant