Skip to content

PHP8 deprecation notices #16

@pjordaan

Description

@pjordaan

In PHP8 this library works, but it gives deprecation notices as iterators require strict typing. Is this project still active? I could fork the project if this project is no longer active.

PHP Deprecated:  Return type of RegRev\ExpressionContainer::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/developer/project-dir/vendor/niklongstone/regex-reverse/src/RegRev/ExpressionContainer.php on line 54
PHP Deprecated:  Return type of RegRev\ExpressionContainer::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/developer/project-dir/vendor/niklongstone/regex-reverse/src/RegRev/ExpressionContainer.php on line 72
PHP Deprecated:  Return type of RegRev\ExpressionContainer::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/developer/project-dir/vendor/niklongstone/regex-reverse/src/RegRev/ExpressionContainer.php on line 64
PHP Deprecated:  Return type of RegRev\ExpressionContainer::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/developer/project-dir/vendor/niklongstone/regex-reverse/src/RegRev/ExpressionContainer.php on line 82
PHP Deprecated:  Return type of RegRev\ExpressionContainer::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/developer/project-dir/vendor/niklongstone/regex-reverse/src/RegRev/ExpressionContainer.php on line 44

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions