Issues on PHP 8.2

Deprecated function: Creation of dynamic property EntityQueue::$table is deprecated in ctools_export_load_object() (line 473 of /app/web/sites/all/modules/contrib/ctools/includes/export.inc).

Deprecated function: Creation of dynamic property EntityQueue::$type is deprecated in ctools_export_load_object() (line 474 of /app/web/sites/all/modules/contrib/ctools/includes/export.inc).

Issue fork ctools-3407718

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

VladimirAus created an issue. See original summary.

chetan 11 made their first commit to this issue’s fork.

chetan 11’s picture

Status: Active » Needs review

Hi,
I have fixed the above error on "ctools" module, please check the raised MR.
Thanks.

alena_stanul’s picture

Hi,
According to @chetan 11 code changes, the error will not be fixed.
I don't see the difference between сreation of dynamic property in $object->table as it was in the original and when we create array with $object_properties then try to use 'foreach ($object_properties .. ' construction to create property of object EntityQueue class.
I checked the code in the sandbox and the error was not fixed.
Please, check.

tormi’s picture

Status: Needs review » Closed (works as designed)

Note that there's no EntityQueue class defined in ctools module.

I had a similar warning, but for LinkitProfile class:
Deprecated function: Creation of dynamic property LinkitProfile::$table is deprecated funktiossa ctools_export_load_object() (rivi 540 tiedostossa /app/web/sites/all/modules/contrib/ctools/includes/export.inc)..

The solution was to deal with LinkitProfile class in linkit module, see https://www.drupal.org/project/linkit/issues/3401666.

So, here we need to update the EntityQueue class in some contrib module.

Changing status to works as designed for now.