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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

markie created an issue. See original summary.

markie’s picture

Issue summary: View changes

markie’s picture

Status: Active » Needs review

mrhorse made their first commit to this issue’s fork.

mrhorse changed the visibility of the branch 3454752-deprecated-string-interpolation to hidden.

mrhorse’s picture

Version: 3.1.0 » 3.2.7

MR5 has been created against the new 3.2.7 (3.2.x dev) branch.

joelseguin’s picture

Thanks @mrhorse - I can confirm that the patch (from MR5) works as expected on the 3.2.7 branch.

rajeevk’s picture

Status: Needs review » Reviewed & tested by the community

The patch from the MR works fine. Marking it RTBC. Thanks