When I run this library with php 8.1.0 I get
Return type of Clue\StreamFilter\CallbackFilter::onClose() should either be compatible with php_user_filter::onClose(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
in /vendor/clue/stream-filter/src/CallbackFilter.php:32
I think if compatibility with php 5 is still desirable the attribute annotation should be added.