Skip to content

Commit

Permalink
Fixed recursion level incrementing in FlattenException::flattenArgs().
Browse files Browse the repository at this point in the history
  • Loading branch information
sun authored and fabpot committed Feb 4, 2014
1 parent d22a1ee commit de32b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Debug/Exception/FlattenException.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ private function flattenArgs($args, $level = 0)
if ($level > 10) {
$result[$key] = array('array', '*DEEP NESTED ARRAY*');
} else {
$result[$key] = array('array', $this->flattenArgs($value, ++$level));
$result[$key] = array('array', $this->flattenArgs($value, $level + 1));
}
} elseif (null === $value) {
$result[$key] = array('null', null);
Expand Down

0 comments on commit de32b8e

Please sign in to comment.