Fixed recursion level incrementing in FlattenException::flattenArgs().
This commit is contained in:
parent
d22a1eea70
commit
de32b8e3b9
@ -249,7 +249,7 @@ class FlattenException
|
|||||||
if ($level > 10) {
|
if ($level > 10) {
|
||||||
$result[$key] = array('array', '*DEEP NESTED ARRAY*');
|
$result[$key] = array('array', '*DEEP NESTED ARRAY*');
|
||||||
} else {
|
} else {
|
||||||
$result[$key] = array('array', $this->flattenArgs($value, ++$level));
|
$result[$key] = array('array', $this->flattenArgs($value, $level + 1));
|
||||||
}
|
}
|
||||||
} elseif (null === $value) {
|
} elseif (null === $value) {
|
||||||
$result[$key] = array('null', null);
|
$result[$key] = array('null', null);
|
||||||
|
Reference in New Issue
Block a user