Skip to content
Permalink
Browse files

Fixed recursion level incrementing in FlattenException::flattenArgs().

  • Loading branch information...
sun authored and fabpot committed Feb 4, 2014
1 parent d22a1ee commit de32b8e3b92c2df2d333fe3f6613fb4ecdd3d153
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Symfony/Component/Debug/Exception/FlattenException.php
@@ -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);

0 comments on commit de32b8e

Please sign in to comment.
You can’t perform that action at this time.