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
No deprecation message is shown
The deprecation message is shown
Joomla 5.2.2
PHP 8.3.13
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;
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-12-03 14:14:14 |
Closed_By | ⇒ | chmst |
Please don't try that again. #44568 (comment)