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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | depricated-function-3392570-2.patch | 595 bytes | arunkumark |
Comments
Comment #2
arunkumarkComment #3
ahebrank commentedComment #5
liam morlandComment #7
bramdriesenNote that this is not yet in the latest release (3.0.1)
Comment #8
ahebrank commentedJust did 3.0.2 for this since it's been a while.