php 8.2 deprecated code

Created on 21 February 2024, 9 months ago
Updated 8 March 2024, 9 months ago

Problem/Motivation

There are a few places where this deprecation message is shown:

Deprecated function: Using ${var} in strings is deprecated, use {$var} instead in include_once() (Line 153 in /html/core/lib/Drupal/Core/Extension/Extension.php)

#0 /html/core/includes/bootstrap.inc(164): _drupal_error_handler_real(8192, 'Using ${var} in...', '/mnt/web/demo_n...', 21)
#1 /html/core/lib/Drupal/Core/Extension/Extension.php(153): _drupal_error_handler(8192, 'Using ${var} in...', '/mnt/web/demo_n...', 21)
#2 /html/core/lib/Drupal/Core/Extension/Extension.php(153): include_once('/mnt/web/demo_n...')
#3 /html/core/lib/Drupal/Core/Extension/ModuleHandler.php(128): Drupal\Core\Extension\Extension->load()
#4 /html/core/lib/Drupal/Core/Extension/ModuleHandler.php(141): Drupal\Core\Extension\ModuleHandler->load('social_language')

A quick search for ${ over the Open Social distro returns the following files:

social_language.module
social_search.module
CorrectUpdateHelperUsage.php
OptionalModuleManager.php
GroupContext.php
AlbumContext.php
BookContext.php
TopicContext.php
EventContext.php
TaggingContext.php
MediaBridge.php
EntityConnection.php
DecoratableTypeResolver.php
SocialGraphQLTestBase.php

Proposed resolution

Replace all ${var} with {$var}

πŸ“Œ Task
Status

Needs review

Version

12.2

Component

Code (back-end)

Created by

πŸ‡©πŸ‡ͺGermany slowflyer

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

Comments & Activities

Production build 0.71.5 2024