Need to fix PHP 8.2 deprecations

Created on 30 March 2023, over 1 year ago
Updated 6 May 2024, 7 months ago

Problem/Motivation

After updating from PHP 8.1 to 8.2 I see following deprecation warnings from adsense module:

PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/docroot/modules/contrib/adsense/adsense.module on line 218

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/docroot/modules/contrib/adsense/adsense.module on line 218
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/docroot/modules/contrib/adsense/adsense.module on line 218

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/docroot/modules/contrib/adsense/adsense.module on line 218

Steps to reproduce

Update from PHP 8.1 to 8.2 and run drush cron (tested with Drush 11).

Proposed resolution

Change from ${var} to {$var} syntax to be PHP 8.2+ compatible.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Component

Code

Created by

🇩🇪Germany IT-Cru Munich

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024