Deprecated notice occurs in PHP 8.1, phpstan tool was used.

Created on 4 April 2023, over 1 year ago
Updated 3 August 2023, over 1 year ago

Problem/Motivation

The following deprecated notice occurs in PHP 8.1:

querypath/QueryPath/Extension/QPList.php //127 Line

Return type mixed of method QPTableData::getIterator() is not covariant with tentative return type Traversable of method IteratorAggregate::getIterator()

querypath/QueryPath/QueryPath.php // 2032 Line

Return type mixed of method QueryPath::getIterator() is not covariant with tentative return type Traversable of method IteratorAggregate::getIterator()

querypath/QueryPath/QueryPath.php // 2150 Line

Return type mixed of method QueryPathIterator::current() is not covariant with tentative return type mixed of method Iterator::current()

Proposed resolution

Added type of return value.

🐛 Bug report
Status

Needs review

Version

2.1

Component

Code

Created by

🇺🇦Ukraine Igumnov_aleksey

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.71.5 2024