php-http / message

HTTP Message related tools
http://php-http.org
MIT License
1.29k stars 41 forks source link

Allow "psr/http-message" v2 #150

Closed nicolas-grekas closed 1 year ago

nicolas-grekas commented 1 year ago
Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets -
Documentation -
License MIT
dbu commented 1 year ago

fixing all on the internet will take a little while i fear. we don't actually test with PSR-7 2.0 yet. when i try to force 2.0, i get:

  Problem 3
    - guzzlehttp/psr7 is locked to version 1.9.0 and an update of this package was not requested.
    - guzzlehttp/psr7 1.9.0 requires psr/http-message ~1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but it conflicts with your root composer.json require (^2.0).
  Problem 4
    - slim/slim is locked to version 3.12.4 and an update of this package was not requested.
    - slim/slim 3.12.4 requires psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but it conflicts with your root composer.json require (^2.0).
  Problem 5
    - laminas/laminas-diactoros is locked to version 2.25.1 and an update of this package was not requested.
    - laminas/laminas-diactoros 2.25.1 requires psr/http-message ^1.1 -> found psr/http-message[1.1] but it conflicts with your root composer.json require (^2.0).

however, we don't implement any of these interfaces in this repository, therefore i think it is safe enough to merge this.