Comments (3)
Iām all for type hinting and return types to be as strict as possible. The problem is that most of the implementations have to match the function signatures from the PSR-7 interfaces which are not type hinted.
from slim-psr7.
The problem is that most of the implementations have to match the function signatures from the PSR-7 interfaces which are not type hinted.
Ah, of course š¤¦āā
This applies for the parameters, but for the "return types" I believe it should be able to increase strictness...
This might be useful to use: https://www.tomasvotruba.cz/blog/2018/12/10/rocket-science-behind-migration-of-docblock-types-to-php-typehints/#give-your-code-a-typehint-facelift
from slim-psr7.
To get an impression, an experimental commit: holtkamp@3934b95
PHPUnit fails, but this seems not related to the types / also fails on a clean clone.
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
- Fix URI Integration Tests
- Bug with empty PSR-7 body? HOT 6
- 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
- Declaration of Slim\Psr7\Uri::withScheme($scheme) must be compatible with Psr\Http\Message\UriInterface::withScheme(string $scheme): Psr\Http\Message\UriInterface HOT 7
- 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.