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

Cannot install csfr without using downgrade #130

Closed
matejik opened this issue Jun 8, 2024 · 2 comments
Closed

Cannot install csfr without using downgrade #130

matejik opened this issue Jun 8, 2024 · 2 comments

Comments

@matejik
Copy link

matejik commented Jun 8, 2024

Hi, following the instructions I tried to install csrf(composer require slim/csrf) with the error below. Downgrade required again

Problem 1
- Root composer.json requires slim/csrf ^1.4 -> satisfiable by slim/csrf[1.4.0].
- slim/csrf 1.4.0 requires 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 slim/csrf:*" to figure out if any version is installable, or "composer require slim/csrf:^2.1" if you know which you need.

@odan
Copy link
Owner

odan commented Jun 8, 2024

The latest version of the slim/csrf package supports only psr/http-message v1.0.

https://github.com/slimphp/Slim-Csrf/blob/1.4.0/composer.json#L21

I will try to create a PR to fix that.

@odan
Copy link
Owner

odan commented Jun 9, 2024

It should work now. Please try it again using the latest version.

https://github.com/slimphp/Slim-Csrf/releases/tag/1.5.0

@odan odan closed this as completed Aug 3, 2024
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

2 participants