reactphp / stream

Event-driven readable and writable streams for non-blocking I/O in ReactPHP.
https://reactphp.org/stream/
MIT License
618 stars 62 forks source link

[1.x] Improve PHP 8.4+ support by avoiding implicitly nullable types #179

Closed clue closed 4 months ago

clue commented 4 months ago

This changeset backports #177 from 3.x to 1.x to improve PHP 8.4+ support by avoiding implicitly nullable types as discussed in https://github.com/reactphp/promise/pull/260. The same idea applies, but v1 requires manual type checks to support legacy PHP versions as the nullable type syntax requires PHP 7.1+ otherwise.

Builds on top of #177, #172 and #159