Comments (7)
What version of PSR are you using?
from slim-psr7.
Thanks for reply. How to check PSR version?
I see now that the URI interface of the psr/http-message package is newer, the composer shows version 1.1. Link to zip:
https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba
from slim-psr7.
Also, there is psr/http-message version 2.0. We have 2 psr/http-message packages (one that came with a product we use, the other one came with a particular module of this application, but both of them are, I think, of April 2023).
from slim-psr7.
I think the problem is that there are no type hints.
from slim-psr7.
The active package is 2.0. Now the slim/psr7 package lacks function parameter and return hints.
from slim-psr7.
It's a big problem for us too. For now we have to freeze psr/http-message to version 1.1 although all of our other dependencies (like Symfony and Laminas) allow 2.0. The only dependency still stuck @ 1.1 is Slim. Thankfully, other dependencies also allow version 1 (^1.1 || ^2.0) but it's a matter of time until ^2.0 will be the minimum for a package. This will probably force us to move everything to Symfony, because they would never allow such an old version to rot in their source code for too long.
from slim-psr7.
Here is a workaround. Shouldn't really be used in production tho. I believe the pipeline is failing.
Hey so I started using `"slim/psr7": "dev-master#08dbc65964bf2c1fb0fe54256322a272cd02596b as 1.6.1",` as a workaround but only for some dev testing.
We are kind of forced to stop using slim because of this. We will slowly make a transition to do so.
Note to the devs: Please try to release current master if possible
Originally posted by @clownmeister in #296 (comment)
from slim-psr7.
Related Issues (20)
- ParseAuthorizationHeader should treat header name case-insensitively. HOT 1
- Documentation? HOT 2
- Invalid URI characters in password or username are not reencoded HOT 4
- Psr7 update issue HOT 1
- Fix PHP 8 Failing Test
- Lowercase authorization header creates a broken request HOT 4
- Issue with empty response with php builtin server HOT 4
- Bug with empty PSR-7 body? HOT 6
- Fix URI Integration Tests
- Incorrect working of the method HOT 1
- Replace deprecated setMethods() HOT 1
- Stream incorrectly reports write-only pipe (STDOUT) as readable
- Illegal offset type in isset or empty when getting attribute from request HOT 2
- PHP uncaught TypeError: strtolower() expects parameter 1 to be string, int given HOT 2
- Integration tests error
- Construction of Uri via UriFactory fails for non-HTTP-related URIs
- Can we have a PHP 7.2/PHP 7.3 security release ? (CVE-2023-30536) HOT 12
- $_SERVER['SERVER_PORT'] server port passed as string
- New version with `psr/http-message` 2 support HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slim-psr7.