No Code Attached Yet
avatar jschmi102
jschmi102
29 Nov 2023

I am seeing desprecating messages when running joomla 5.0.x updater with php 8.2

Steps to reproduce the issue

Run updater with joomla 5.0.x and php 8.2

Actual result

received messages:

Deprecated: Creation of dynamic property Joomla\CMS\Updater\Update::$sha256 is deprecated in /libraries/src/Updater/Update.php on line 418
Deprecated: Creation of dynamic property Joomla\CMS\Updater\Update::$sha384 is deprecated in /libraries/src/Updater/Update.php on line 418
Deprecated: Creation of dynamic property Joomla\CMS\Updater\Update::$sha512 is deprecated in /libraries/src/Updater/Update.php on line 418
Deprecated: Creation of dynamic property Joomla\CMS\Updater\Update::$section is deprecated in /libraries/src/Updater/Update.php on line 418

correction/fix of problem

add class variables:

protected $sha256;
protected $sha384;
protected $sha512;
protected $section;

avatar jschmi102 jschmi102 - open - 29 Nov 2023
avatar joomla-cms-bot joomla-cms-bot - change - 29 Nov 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 29 Nov 2023
avatar Quy Quy - change - 30 Nov 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-11-30 01:04:21
Closed_By Quy
avatar Quy Quy - close - 30 Nov 2023
avatar Quy
Quy - comment - 30 Nov 2023

Duplicate #41553. Thanks for the report.

Add a Comment

Login with GitHub to post a comment