odan / slim4-skeleton

A Slim 4 Skeleton
https://odan.github.io/slim4-skeleton/
MIT License
439 stars 80 forks source link

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

Closed matejik closed 3 months ago

matejik commented 4 months ago

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

Problem 1

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 commented 4 months ago

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 commented 4 months ago

It should work now.