PHP8.2 errors in drupal 9.5.10 console

Created on 28 August 2023, over 1 year ago
Updated 31 August 2023, over 1 year ago

Problem/Motivation

Some deprecated code is returned when Drupal console is flushing cache.

Steps to reproduce

Install Drupal core 9.5.10
Install Drupal console
Install Lazy module.
Enable Lazy module.
Execute ./vendor/bin/drupal smo dev

The execution returns:
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /modules/contrib/lazy/src/Form/LazyForm.php on line 161
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /modules/contrib/lazy/src/Form/LazyForm.php on line 166
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /modules/contrib/lazy/src/Form/LazyForm.php on line 166
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /modules/contrib/lazy/src/Form/LazyForm.php on line 167
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /modules/contrib/lazy/src/Form/LazyForm.php on line 167
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /modules/contrib/lazy/src/Form/LazyForm.php on line 167
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /modules/contrib/lazy/src/Form/LazyForm.php on line 167
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /modules/contrib/lazy/src/Form/LazyForm.php on line 170

Proposed resolution

Patch joined to this ticket.

Remaining tasks

Please integrate the patch if OK with tests on PHP8.2.

🐛 Bug report
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

🇫🇷France frondeau Nantes, FRANCE

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