On PHP 8.1, Calling current() on an object is deprecated

Created on 5 May 2022, over 2 years ago
Updated 31 January 2024, 10 months ago

Problem/Motivation

When mentioning a user in a WYSIWYG field, on a site running on PHP 8.1, I receive the following notice:

Deprecated function: current(): Calling current() on an object is deprecated in Drupal\ckeditor_mentions\MentionsType\MentionsTypeBase->defaultConfiguration()

Steps to reproduce

Install on a Drupal 9 site on PHP 8.1 and insert a mention.

Proposed resolution

I question even using `current()` to begin with. The Drupal render service works perfectly fine when rendering arrays.

Remaining tasks

Review PR.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pianomansam

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024