Skip to content

PHP 8.1 Deprecation: Clue\StreamFilter\CallbackFilter::onClose() should either be compatible with php_user_filter::onClose() #44

@rodrigoaguilera

Description

@rodrigoaguilera

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions