mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-16 21:08:34 +01:00
commit
db7bf99c4c
@ -33,14 +33,15 @@ abstract class DataCollector implements DataCollectorInterface
|
||||
* @param $var
|
||||
* @return mixed
|
||||
*/
|
||||
public function flattenVar($var){
|
||||
public function flattenVar($var)
|
||||
{
|
||||
if (is_array($var)) {
|
||||
foreach ($var as &$v) {
|
||||
$v = $this->flattenVar($v);
|
||||
}
|
||||
} else if (is_object($var)) {
|
||||
$var = "Object(" . get_class($var) . ")";
|
||||
}else{
|
||||
} else {
|
||||
$var = htmlentities($var, ENT_QUOTES, 'UTF-8', false);
|
||||
}
|
||||
return $var;
|
||||
|
Loading…
x
Reference in New Issue
Block a user