Address Deprecation Warnings in AdvAgg Module for PHP 8.3 Compatibility

Created on 28 August 2023, 10 months ago
Updated 30 October 2023, 8 months ago

Issue Description:

Summary: The AdvAgg module currently generates deprecation warnings related to the usage of ${var} syntax in strings within the codebase. These deprecation warnings indicate a potential incompatibility with PHP 8.3, as the deprecated syntax will become a breaking change in the upcoming version. It's essential to proactively resolve these deprecations to ensure a smooth transition to PHP 8.3.

Steps to Reproduce:

  1. Install and enable the AdvAgg module on a Drupal 7 site.
  2. Use the site with PHP 8.2.
  3. Observe deprecation warnings related to ${var} syntax in AdvAgg module codebase.

Expected Results:

Deprecation warnings related to ${var} syntax should not be displayed, ensuring a cleaner development environment and future compatibility with PHP 8.3.

Actual Results:

Deprecation warnings are present, indicating the use of deprecated ${var} syntax in AdvAgg module codebase.

Proposed Solution:

To address these deprecation warnings, the ${var} syntax should be replaced with {$var}. This change aligns with PHP 8.2's deprecation guidelines and will also prevent potential compatibility issues with PHP 8.3 and beyond.

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom lesleyfernandes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024