You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
Expected result
no PHP warning
Actual result
Warning: Illegal string offset 'loading' in .../libraries/src/HTML/HTMLHelper.php on line 693
Steps to reproduce the issue
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).
Expected result
no PHP warning
Actual result
Warning: Illegal string offset 'loading' in .../libraries/src/HTML/HTMLHelper.php on line 693
System information (as much as possible)
PHP 7.4.9
Joomla! 4.0.0-beta4-dev Development [ Mañana ] 29-July-2020 18:21 GMT
Additional comments
method definition in .../libraries/src/HTML/HTMLHelper.php
The text was updated successfully, but these errors were encountered: