reactphp / http

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

[3.x] Improve PHP 8.4+ support by avoiding implicitly nullable types #536

Closed clue closed 2 months ago

clue commented 3 months ago

This changeset improves PHP 8.4+ support by avoiding implicitly nullable types as discussed in https://github.com/reactphp/promise/pull/260.

I'm planning to add native types to the public API and introduce PHPStan in follow-up PRs.

Once merged, we should apply similar changes to all our upcoming v3 components. On top of this, we should backport similar changes to the v1 branch.

Builds on top of #530, #529, #508, #410, reactphp/promise#260, https://github.com/reactphp/socket/pull/317, https://github.com/reactphp/stream/pull/179, reactphp/async#87 and reactphp/promise-timer#70