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

Error add slim/twig-view (composer require slim/twig-view) #129

Closed
matejik opened this issue Apr 23, 2024 · 2 comments
Closed

Error add slim/twig-view (composer require slim/twig-view) #129

matejik opened this issue Apr 23, 2024 · 2 comments

Comments

@matejik
Copy link

matejik commented Apr 23, 2024

Hi,
I tried adding according to the documentation (eBook Vol. 1) slim/twig-view with the below result.

Problem 1
- Root composer.json requires slim/twig-view ^3.3 -> satisfiable by slim/twig-view[3.3.0].
- slim/twig-view 3.3.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.

Using --with-all-dependencies where psr/http-message will be downgraded is probably not the right way? Thank you for the answer on how to proceed correctly

Thanks Jiri

@odan
Copy link
Owner

odan commented Apr 23, 2024

Hi @matejik

It seems like there's a compatibility issue between the versions of slim/twig-view and the latest psr/http-message package.
The slim/twig-view declares v1.1 as dependency, which should be changed to ^1.1 || ^2.0 in this package, exactly here:

https://github.com/slimphp/Twig-View/blob/3.x/composer.json#L22

I will try to create a PR and hope that it's getting merged.

@odan
Copy link
Owner

odan commented May 1, 2024

It should work now.

@matejik matejik closed this as completed Jun 8, 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