The "lazy-loading" method "image" (defined in .../libraries/src/HTML/HTMLHelper.php ) creates PHP warnings, when images are loaded without the $attribs
I belief, the reason is that $attribs is set to NULL, if not provided in the method-call, and adding an array-element "loading" to a NULL value causes this warning (in PHP 7.4).
no PHP warning
Warning: Illegal string offset 'loading' in .../libraries/src/HTML/HTMLHelper.php on line 693
PHP 7.4.9
Joomla! 4.0.0-beta4-dev Development [ MaƱana ] 29-July-2020 18:21 GMT
method definition in .../libraries/src/HTML/HTMLHelper.php
public static function image($file, $alt, $attribs = null, $relative = false, $returnPath = 0)
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-09-15 13:25:30 |
Closed_By | ⇒ | SharkyKZ |
Duplicate issue #30615