reactphp / http

Event-driven, streaming HTTP client and server implementation for ReactPHP.
https://reactphp.org/http/
MIT License
747 stars 143 forks source link

Pass PHPStan Analysis #535

Open dsmithhayes opened 3 months ago

dsmithhayes commented 3 months ago

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.