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

make symfony 7 compatible #2915

Closed
op-euga opened this issue Jan 17, 2024 · 5 comments
Closed

make symfony 7 compatible #2915

op-euga opened this issue Jan 17, 2024 · 5 comments
Labels
duplicate Solution/explanation on this issue has already been given in an other issue

Comments

@op-euga
Copy link

op-euga commented Jan 17, 2024

Hello,

I wanted to update my symfony from 6.4 to 7.0. But composer complains with the following line:

Your requirements could not be resolved to an installable set of packages.

I encountered an issue with the following code:

composer update

Carbon version: 2.72.1

PHP version: 8.2.5

I expected to get:

composer update work with symfony 7.0 packages

But I actually get:

Problem 1
    - nesbot/carbon[2.67.0, ..., 2.72.1] require symfony/translation ^3.4 || ^4.0 || ^5.0 || ^6.0 -> found symfony/translation[v3.4.0, ..., v3.4.47, v4.0.0, ..., v4.4.47, v5.0.0, ..., v5.4.31, v6.0.0, ..., v6.4.2] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires nesbot/carbon ^2.67 -> satisfiable by nesbot/carbon[2.67.0, ..., 2.72.1].

Thanks!

@kylekatarnls
Copy link
Collaborator

#2891 (comment)

@kylekatarnls kylekatarnls added the duplicate Solution/explanation on this issue has already been given in an other issue label Jan 17, 2024
@kylekatarnls
Copy link
Collaborator

v3 compatibility with Laravel is now being checked: laravel/framework#49764

If you are on Laravel or have a composer constraint in your project needed carbon v2, you can still try the v3 using:

composer require "nesbot/carbon:3.x-dev as 2.99"

Do not hesitate to give it a try, your help in testing this new version will be gratefully welcome. The more it can be tested, the faster it will reach the stable release.

@op-euga
Copy link
Author

op-euga commented Jan 22, 2024

v3 compatibility with Laravel is now being checked: laravel/framework#49764

If you are on Laravel or have a composer constraint in your project needed carbon v2, you can still try the v3 using:

composer require "nesbot/carbon:3.x-dev as 2.99"

Do not hesitate to give it a try, your help in testing this new version will be gratefully welcome. The more it can be tested, the faster it will reach the stable release.

No I'm using symfony and the nesbot/carbon:3.x-dev is working. But I would rather wait until the final 3.x version is released. When will this be?

@kylekatarnls
Copy link
Collaborator

Our timeline will be synchronized with the Laravel one so to take advantage of people testing Laravel 11 nightly build to also test Carbon 3. If no major issue is detected during those tests, Carbon 3 will become stable before Laravel 11 stable is released (planned for February 6th, 2024). In any other case, we'll propose the upgrade for Laravel 12 but won't wait for it to be released, then it would probably happen in March.

@op-euga
Copy link
Author

op-euga commented Jan 24, 2024

Thx for this info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Solution/explanation on this issue has already been given in an other issue
Projects
None yet
Development

No branches or pull requests

2 participants