Deprecated dynamic property Patchwork\JSqueeze::$local_tree / $used_tree

Created on 11 June 2024, 6 months ago
Updated 22 July 2024, 4 months ago

Problem/Motivation

I faced deprecation notices on PHP 8.2:

Deprecated function: Creation of dynamic property Patchwork\JSqueeze::$local_tree is deprecated in Patchwork\JSqueeze->renameVars() (line 1011 of /modules/contrib/advagg/advagg_js_compress/jsqueeze.inc).
Deprecated function: Creation of dynamic property Patchwork\JSqueeze::$used_tree is deprecated in Patchwork\JSqueeze->renameVars() (line 1012 of /modules/contrib/advagg/advagg_js_compress/jsqueeze.inc). 

Steps to reproduce

Enable advagg_js_compress module and select the jsqueeze compression method.

Proposed resolution

Declare $local_tree and $used_tree propreties.

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

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