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

Support Laravel 11 + PHP 8.3 #168

Closed
artin1982 opened this issue Mar 23, 2024 · 4 comments
Closed

Support Laravel 11 + PHP 8.3 #168

artin1982 opened this issue Mar 23, 2024 · 4 comments

Comments

@artin1982
Copy link

artin1982 commented Mar 23, 2024

I was trying to install the package on Laravel 11 with PHP 8.3 but it failed ...

#composer  require morilog/jalali:3.*

./composer.json has been updated
Running composer update morilog/jalali
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - morilog/jalali[v3.0.0, ..., v3.0.2] require illuminate/support ^5.0 -> found illuminate/support[v5.0.0, ..., v5.8.36] but these were not lo                                                              aded, likely because it conflicts with another require.
    - morilog/jalali[v3.0.3, ..., v3.0.8] require nesbot/carbon ^1.21 -> found nesbot/carbon[1.21.0, ..., 1.39.1] but the package is fixed to 3.1                                                              .1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - morilog/jalali v3.0.9 requires php ^7.0 -> your php version (8.3.4) does not satisfy that requirement.
    - morilog/jalali[v3.0.10, ..., v3.1.2] require php ^7.0 | ^7.1 | ^7.2 -> your php version (8.3.4) does not satisfy that requirement.
    - morilog/jalali[v3.2.0, ..., v3.4.1] require nesbot/carbon ^1.21 || ^2.0 -> found nesbot/carbon[1.21.0, ..., 1.39.1, 2.0.0, ..., 2.72.3] but                                                               the package is fixed to 3.1.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for                                                               the update command.
    - Root composer.json requires morilog/jalali 3.* -> satisfiable by morilog/jalali[v3.0.0, ..., v3.4.1].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
@moradimohamad
Copy link

same issue

@kazemmdev
Copy link

You can install it with the following command if you're using laravel11.x
composer require morilog/jalali -W

@Nashnas
Copy link

Nashnas commented May 7, 2024

Your command Rewrite all old packages. what can we resolve it without change pre-installed packages?

@omidfarahani
Copy link

The v3.4.2 release added support for Carbon 3 which should fix the problem.

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

No branches or pull requests

5 participants