Explorar o código

[HttpKernel] lowered the number of level to keep in Flattened exceptions to make the tests pass when XDebug is enabled (beause of the default max nesting level of 100)

Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
1238bb3d53

+ 1 - 1
src/Symfony/Component/HttpKernel/Exception/FlattenException.php

@@ -176,7 +176,7 @@ class FlattenException
             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));