PHP 8.1 deprecated notices

Created on 18 April 2023, about 1 year ago

Problem:

Using phpstan tool were found deprecated notices

  • in feeds_ex/src/File/FeedsExLineIterator.php :

line 37 Return type mixed of method FeedsExLineIterator::rewind() is not covariant with tentative return type void of method Iterator::rewind().
line 48 Return type mixed of method FeedsExLineIterator::next() is not covariant with tentative return type void of method Iterator::next().
line 56 Return type mixed of method FeedsExLineIterator::valid() is not covariant with tentative return type bool of method Iterator::valid().

Proposed resolution:

Update return type to match the root method return type or use the #[\ReturnTypeWillChange] attribute to temporarily suppress the error.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ΎBelarus alena_stanul

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024