Hi,
I made a small change to the files rendering_item.php and rendering.php. It just adds property declarations for variables that were being created dynamically.
In rendering_item.php:
var $config;
var $id;
var $pid;
var $pk;
var $pkb;
var $author;
var $author_session;
var $cck;
var $loc;
var $parent;
var $type_id;
var $location;
var $fields_list;
var $positions_m;
In rendering.php:
var $config;
var $client;
var $template;
var $location;
var $theme;
var $positions2;
var $positions_m;
var $base;
var $profiler_log;
var $translate;
var $list;
var $id_attributes;
var $id_class;
var $item_attributes;
In PHP 8.2+, dynamic property creation triggers lots of deprecation warnings in log files like:
Deprecated: Creation of dynamic property ... is deprecated
This will become a fatal error in future PHP versions (probably PHP 9).
Please consider including these property declarations in the core codebase to make the extension more PHP 8.2+ compatible and future-proof.
There are still a couple more warnings left, but I'm not quite sure how to remove those yet:
Deprecated: Creation of dynamic property Joomla\CMS\Application\SiteApplication::$cck_jquery_more is deprecated in libraries/cck/_/cck.php on line 602
Deprecated: Creation of dynamic property Joomla\CMS\Application\SiteApplication::$cck_pagination is deprecated in libraries/cck/base/list/list_inc.php on line 407