Skip to content

Commit

Permalink
[HttpKernel] lowered the number of level to keep in Flattened excepti…
Browse files Browse the repository at this point in the history
…ons to make the tests pass when XDebug is enabled (beause of the default max nesting level of 100)
  • Loading branch information
fabpot committed Jul 15, 2011
1 parent 06a90bb commit 1238bb3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -176,7 +176,7 @@ private function flattenArgs($args, $level = 0)
if (is_object($value)) {
$result[$key] = array('object', get_class($value));
} elseif (is_array($value)) {
if ($level > 100) {
if ($level > 10) {
$result[$key] = array('array', '*DEEP NESTED ARRAY*');
} else {
$result[$key] = array('array', $this->flattenArgs($value, ++$level));
Expand Down

0 comments on commit 1238bb3

Please sign in to comment.