Skip to content

Incompatible with Laravel 12 #62

@djohts

Description

@djohts

It is impossible to require this package when using Laravel ^12 due to nesbot/carbon version conflicts.

# composer why nesbot/carbon
laravel/framework v12.28.1 requires nesbot/carbon (^3.8.4)

# composer require truckersmp/api-client
./composer.json has been updated
Running composer update truckersmp/api-client
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires truckersmp/api-client * -> satisfiable by truckersmp/api-client[v0.1, v0.2, v0.3, v1.0.0, ..., v1.2.0, v2.0.0, ..., v2.3.1].
    - truckersmp/api-client[v0.1, ..., v0.3] require nesbot/carbon ^1.21 -> found nesbot/carbon[1.21.0, ..., 1.39.1] but the package is fixed to 3.10.2 (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.
    - truckersmp/api-client[v1.0.0, ..., v1.2.0] require php ^7.2 -> your php version (8.3.6) does not satisfy that requirement.
    - truckersmp/api-client[v2.0.0, ..., v2.3.1] require nesbot/carbon ^2.16 -> found nesbot/carbon[2.16.0, ..., 2.73.0] but the package is fixed to 3.10.2 (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.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require truckersmp/api-client:*" to figure out if any version is installable, or "composer require truckersmp/api-client:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Using -W does not help either as there is no shared version range.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions