return $this;
} private function flattenArgs(array
$args, int
$level = 0, int &
$count = 0
): array
{ $result =
[];
foreach ($args as $key =>
$value) { if (++
$count > 1e4
) { return ['array', '*SKIPPED over 10000 entries*'
];
} if ($value instanceof \__PHP_Incomplete_Class
) { $result[$key] =
['incomplete-object',
$this->
getClassNameFromIncomplete($value)];
} elseif (\
is_object($value)) { $result[$key] =
['object',
get_debug_type($value)];
} elseif (\
is_array($value)) { if ($level > 10
) { $result[$key] =
['array', '*DEEP NESTED ARRAY*'
];
} else { $result[$key] =
['array',
$this->
flattenArgs($value,
$level + 1,
$count)];
} } elseif (null ===
$value) { $result[$key] =
['null', null
];
} elseif (\
is_bool($value)) {