-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Carbon 1.26.0 breaks Laravel compability #1250
Comments
This is a Laravel issue, not a Carbon issue. A quick glance at laravel's package.json shows a recent commit updated the dependency from "^1.24.1" to "1.25.*" which would fix this issue. |
Very unexpected, I just upgraded a Laravel project with no problem. What is your Laravel and PHP version? Making $macros private could be a possible fix. |
Laravel 5.6.16 requires nesbot/carbon at "^1.24.1" which does try to pull 1.26.0, which is grossly incompatibly with Laravel's Carbon extension. Current fix is to manually restrict carbon to "1.25.*" or lower in any laravel projects. |
When did you get this error? on update, on run, on extend? I use Laravel 5.6 with Carbon 1.26 and PHP 7.2 just now and my macros work. |
On updating an existing project. More specifically, on executing |
This error throws in runtime also, not just in console. It breaks entire project. So we are supposed to wait for new release of Laravel? I see they already fixed a dependency |
I'd just like to ask that you refrain from tagging a new release reverting these changes before speaking with Taylor to prevent a repeat of the last time there was a Laravel/Carbon compatibility issue. |
We will use an other variable name. But I still do not understand, I just ran |
@36864 @alshenetsky Can you try if installing dev-master version solves the problem? |
Seems to be fixed. Thank you very much. |
After
composer update
it says:Downgrade to 1.25.0 works fine
The text was updated successfully, but these errors were encountered: