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

Bump psr/http-message to ^2.0 #115

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ashatrov
Copy link

@ashatrov ashatrov commented Apr 2, 2025

There is an error with Laravel 12.

> composer require tobyz/json-api-server

./composer.json has been updated
Running composer update tobyz/json-api-server
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 tobyz/json-api-server * -> satisfiable by tobyz/json-api-server[v0.2.0, v0.2.1].
    - tobyz/json-api-server[v0.2.0, ..., v0.2.1] require psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but the package is fixed to 2.0 (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 tobyz/json-api-server:*" to figure out if any version is installable, or "composer require tobyz/json-api-server:^2.1" if you know which you need.

@ashatrov
Copy link
Author

ashatrov commented Apr 2, 2025

Also, it may be better to use "psr/http-message": ">=1.0 <3.0" for backward compatibility.

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

Successfully merging this pull request may close these issues.

1 participant