PHP 8.0 FatalError: Non-static method FeedsQueryPathParserParserTestCase::getInfo()

Created on 26 April 2023, about 1 year ago

Problem/Motivation

The function "call_user_func(array($class, 'getInfo'))" placed in the Drupal core (docroot/modules/simpletest/simpletest.module) calling a non-static method "getInfo()" in the "feeds_querypath_parser/tests/feeds_querypath_parser.test" as static.
Starting from PHP8.0 its causing fatal error.

TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, non-static method FeedsQueryPathParserParserTestCase::getInfo() cannot be called statically in simpletest_test_get_all() (line 372 of simpletest/simpletest.module).

Occurs when going to /admin/config/development/testing

So I propose changing the non-static method to static.

πŸ› Bug report
Status

Needs review

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Igumnov_aleksey

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

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

  • 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