User tests: Successful: Unsuccessful:
Fix a warning htmlspecialchars() expects parameter 1 to be string, array given
in the case of array passed as an argument in the stack trace.
Add a check for special case of is_array($arg)
.
Declare a function like
function TestMe($array) {
JText::_($array[0]);
}
and call it TestMe(['qweasd'])
with enabled language logging.
<b>Warning</b>: htmlspecialchars() expects parameter 1 to be string, array given in <b>.../plugins/system/debug/src/DataFormatter.php</b> on line <b>66</b>
No warning message
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
Some questions on Testing-Instruction:
Thanks
I am afraid this one has beaten me. I put the following in cassiopeia:
function TestMe($array) {
echo Text::_($array[0]);
}
TestMe(['qweasd']);
But following through the code with the debugger the section where the change is made is never executed. In the debug bar I see the stack trace for qweasd whether or not the patch is applied. What am I doing wrong?
I have tested this item
set RTC
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-12-01 09:30:37 |
Closed_By | ⇒ | HLeithner |
Thanks
I have tested this item✅ successfully on ee90cf1
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30144.