PHP8.2 compatibility: Deprecated functions: Creation of dynamic property EntityQueue::

Created on 20 March 2024, 3 months ago
Updated 9 April 2024, 2 months ago

Problem/Motivation

On PHP8.2 the next deprecations appeared:

Deprecated function: Creation of dynamic property EntityQueue::$table is deprecated in ctools_export_load_object() (line 473 of /modules/contrib/ctools/includes/export.inc).
Deprecated function: Creation of dynamic property EntityQueue::$type is deprecated in ctools_export_load_object() (line 474 of /modules/contrib/ctools/includes/export.inc).
Deprecated function: Creation of dynamic property EntityQueue::$export_module is deprecated in _ctools_export_get_defaults() (line 682 of /modules/contrib/ctools/includes/export.inc).
Deprecated function: Creation of dynamic property EntityQueue::$type is deprecated in ctools_export_load_object() (line 537 of /modules/contrib/ctools/includes/export.inc).
Deprecated function: Creation of dynamic property EntityQueue::$in_code_only is deprecated in ctools_export_load_object() (line 539 of /modules/contrib/ctools/includes/export.inc).
Deprecated function: Creation of dynamic property EntityQueue::$table is deprecated in ctools_export_load_object() (line 540 of /modules/contrib/ctools/includes/export.inc).

Ctools functions are invoked originally from the entityqueue_queue_load_multiple().
I propose to add PHP8.2 support for the class EntityQueue by stating #[\AllowDynamicProperties]

πŸ› Bug report
Status

Fixed

Version

1.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.69.0 2024