Skip to content

Commit 32b80cd

Browse files
committed
bug #19986 [Form][EventDispatcher] Fix VarDumper usage related to perf regression (nicolas-grekas)
This PR was merged into the 3.2-dev branch. Discussion ---------- [Form][EventDispatcher] Fix VarDumper usage related to perf regression | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #19978 | License | MIT | Doc PR | - Commits ------- 294868e [Form][EventDispatcher] Fix VarDumper usage related to perf regression
2 parents f28a2f0 + 8ff0e87 commit 32b80cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

DataCollector/DataCollector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ protected function cloneVar($var)
6767
if (null === $this->cloner) {
6868
if (class_exists(ClassStub::class)) {
6969
$this->cloner = new VarCloner();
70+
$this->cloner->setMaxItems(250);
7071
$this->cloner->addCasters(array(
7172
Stub::class => function (Stub $v, array $a, Stub $s, $isNested) {
7273
return $isNested ? $a : StubCaster::castStub($v, $a, $s, true);

0 commit comments

Comments
 (0)