No Code Attached Yet
avatar aberenguer78
aberenguer78
3 Dec 2024

Steps to reproduce the issue

When opening my custom module appears this deprecation error:
Deprecated: Automatic conversion of false to array is deprecated in C:\xamppPHP8.2\htdocs\joomla5\libraries\src\HTML\HTMLHelper.php on line 810

The error message is in joomla root\libraries\src\HTMLHelper.php line 810

Expected result

No deprecation message is shown

Actual result

The deprecation message is shown

System information (as much as possible)

Joomla 5.2.2
PHP 8.3.13

Additional comments

Solution provided by chat gpt:

Solution add this line in 810: (Solution provided by chat gpt - deprecation happens in php 8.2)
$options = is_array($options) ? $options : [];
$options['relative'] = $options['relative'] ?? false;

avatar aberenguer78 aberenguer78 - open - 3 Dec 2024
avatar joomla-cms-bot joomla-cms-bot - change - 3 Dec 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 Dec 2024
avatar chmst chmst - change - 3 Dec 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-12-03 14:14:14
Closed_By chmst
avatar chmst chmst - close - 3 Dec 2024
avatar chmst
chmst - comment - 3 Dec 2024

Please don't try that again. #44568 (comment)

Add a Comment

Login with GitHub to post a comment