PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead.

Created on 15 October 2023, about 1 year ago
Updated 24 October 2023, about 1 year ago

Problem/Motivation

Since PHP 8.2, PHP emits a deprecation notice on the following pattern that the dollar sign ($) is placed at the outside of the curly braces.

PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/web/modules/contrib/config_inspector/src/Commands/InspectorCommands.php on line 300

Steps to reproduce

Using drush uli/cim shows notice.

๐Ÿ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ฆUkraine Anna D

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024