http
http copied to clipboard
Pass PHPStan Analysis
For the Roadmap to v3.x, there was a request to fully type the API for the library. For this PR, I have installed PHPStan and added it to the composer.json (as well as some run scripts), and fixed all the issues that appeared.
As an aside, Interesting enough, PHPStan would fail if I run src and tests together at the same time. But one at a time the analysis runs fine.