- Issue created by @Igumnov_aleksey
- Open on Drupal.org βCore: 7.x + Environment: PHP 5.4 & MySQL 5.5last update
almost 2 years ago Waiting for branch to pass - last update
almost 2 years ago Patch Failed to Apply
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_jsonpath_parser/tests/feeds_jsonpath_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 FeedsJSONPathParserTestCase::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.
Needs review
Code