Using ${var} in strings is deprecated, use {$var} instead

Created on 14 June 2024, 5 months ago

Problem/Motivation

As of PHP 8.2 the use of `${var}` has been deprecated. This is returning multiple notices throughout the Opigno suite of modules. Working on replacing them.

Proposed resolution

$key = implode('_', [
$group_id,
$uid,
]);
Will generate the same key string.

Related

Also to note, drupal_static will be deprecated in Drupal 11, so this will need to be addressed.

@see https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation

πŸ› Bug report
Status

Active

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States markie Albuquerque, NM

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