Deprecated function: Calling get_class() without arguments is deprecated

Created on 3 March 2025, 6 days ago

Problem/Motivation

Module generates the following warning:
Deprecated function: Calling get_class() without arguments is deprecated in Drupal\og_menu\Plugin\Block\OgMenuBlock->blockForm() (line 133 of /contrib/og_menu/src/Plugin/Block/OgMenuBlock.php).

Steps to reproduce

Use PHP8.3, add "ogmenu_block" block,

See https://www.php.net/manual/en/function.get-class.php
"Calling get_class() without an argument now emits an E_DEPRECATED warning; previously, calling this function inside a class returned the name of that class."

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇵🇱Poland alorenc Wolsztyn, 🇵🇱

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024