TypeError - get_class_methods - php > 8 (drupal 10)

Created on 31 January 2023, almost 2 years ago
Updated 19 July 2024, 4 months ago

Problem/Motivation

Upgraded to Drupal 10 and upgraded php to 8.1

Now I can't get into the configuration gui of RESTUI (.../admin/config/services/rest)

In the Log:
TypeError: get_class_methods(): Argument #1 ($object_or_class) must be an object or a valid class name, string given in get_class_methods() (line 158 of /home/rgpdk/public_html/app/modules/restui/src/Controller/RestUIController.php).

I can see in the doc of php that changes are made to the method get_class_methods:
https://www.php.net/manual/en/function.get-class-methods.php
8.0.0 The object_or_class parameter now only accepts objects or valid class names.
Could this be the issue?

๐Ÿ› Bug report
Status

RTBC

Version

1.21

Component

Code

Created by

๐Ÿ‡ฉ๐Ÿ‡ฐDenmark rgry

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024