PHP Deprecated: Return type of QueryPath\QueryPathIterator::current() should either be compatible with IteratorIterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/runner/work/querypath/querypath/src/QueryPathIterator.php on line 29
Resolves #27
Pull Request type
Please check the type of change your PR introduces:
[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] Documentation content changes
[ ] Other (please describe):
What is the current behavior?
This notice is triggered when running PHP 8.1
PHP Deprecated: Return type of QueryPath\QueryPathIterator::current() should either be compatible with IteratorIterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/runner/work/querypath/querypath/src/QueryPathIterator.php on line 29
Fixes the following in a backwards-compatible way
Resolves #27
Pull Request type
Please check the type of change your PR introduces:
What is the current behavior?
This notice is triggered when running PHP 8.1
What is the new behavior?
The notice is no longer present.
Does this introduce a breaking change?