@@ -53,16 +53,23 @@ Before calling :method:`Symfony\\Component\\VarDumper\\Cloner\\VarCloner::cloneV
53
53
you can configure these limits:
54
54
55
55
:method: `Symfony\\ Component\\ VarDumper\\ Cloner\\ VarCloner::setMaxItems `
56
- configures the maximum number of items that will be cloned
57
- *past the first nesting level *. Items are counted using a breadth-first
56
+ Configures the maximum number of items that will be cloned
57
+ *past the minimum nesting depth *. Items are counted using a breadth-first
58
58
algorithm so that lower level items have higher priority than deeply nested
59
- items;
59
+ items. Specifying `` -1 `` removes the limit.
60
60
61
- :method: `Symfony\\ Component\\ VarDumper\\ Cloner\\ VarCloner::setMaxString `
62
- configures the maximum number of characters that will be cloned before
63
- cutting overlong strings;
61
+ :method: `Symfony\\ Component\\ VarDumper\\ Cloner\\ VarCloner::setMinDepth `
62
+ .. versionadded :: 3.4
63
+ The ``setMinDepth() `` method was introduced in Symfony 3.4.
64
+
65
+ Configures the minimum tree depth where we are guaranteed to clone
66
+ all the items. After this depth is reached, only ``setMaxItems ``
67
+ items will be cloned. The default value is ``1 ``, which is consistent
68
+ with older Symfony versions.
64
69
65
- In both cases, specifying ``-1 `` removes any limit.
70
+ :method: `Symfony\\ Component\\ VarDumper\\ Cloner\\ VarCloner::setMaxString `
71
+ Configures the maximum number of characters that will be cloned before
72
+ cutting overlong strings. Specifying ``-1 `` removes the limit.
66
73
67
74
Before dumping it, you can further limit the resulting
68
75
:class: `Symfony\\ Component\\ VarDumper\\ Cloner\\ Data ` object using the following methods:
0 commit comments