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. It can be seen in several places:
PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/docroot/modules/contrib/paragraphs_sets_plugins/src/PluginManager.php on line 37

Steps to reproduce

1. Use a Drupal 10 project with PHP 8.2
1. Add drupal/gutenberg module via composer.
3. Observe warnings in the terminal when using drush or via the web interface.

Proposed resolution

Use {$var} syntax instead of ${var} syntax to avoid deprecation notice.

CommentFileSizeAuthor
#2 depricated-function-3392570-2.patch595 bytesarunkumark

Comments

arunkumark created an issue. See original summary.

arunkumark’s picture

Assigned: arunkumark » Unassigned
Status: Active » Needs review
StatusFileSize
new595 bytes
ahebrank’s picture

Status: Needs review » Fixed

  • arunkumark authored 89dae2f9 on 3.0.x
    Issue #3392570 by arunkumark: PHP Deprecated: Using ${var} in strings is...
liam morland’s picture

Issue tags: -depricated, -php8.2 +PHP 8.2

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

bramdriesen’s picture

Note that this is not yet in the latest release (3.0.1)

ahebrank’s picture

Just did 3.0.2 for this since it's been a while.