10000 [Profiler] Fix data collector getCasters() call · symfony/symfony@34e7094 · GitHub
[go: up one dir, main page]

Skip to content

Commit 34e7094

Browse files
committed
[Profiler] Fix data collector getCasters() call
1 parent 5443599 commit 34e7094

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/Symfony/Component/Form/Extension/DataCollector/FormDataCollector.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Symfony\Component\HttpFoundation\Request;
1717
use Symfony\Component\HttpFoundation\Response;
1818
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
19-
use Symfony\Component\HttpKernel\DataCollector\Util\ValueExporter;
2019
use Symfony\Component\Validator\ConstraintViolationInterface;
2120
use Symfony\Component\VarDumper\Caster\Caster;
2221
use Symfony\Component\VarDumper\Caster\ClassStub;
@@ -68,11 +67,6 @@ class FormDataCollector extends DataCollector implements FormDataCollectorInterf
6867
*/
6968
private $formsByView;
7069

71-
/**
72-
* @var ValueExporter
73-
*/
74-
private $valueExporter;
75-
7670
private $hasVarDumper;
7771

7872
public function __construct(FormDataExtractorInterface $dataExtractor)

src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected function cloneVar($var)
6969
if (class_exists(CutStub::class)) {
7070
$this->cloner = new VarCloner();
7171
$this->cloner->setMaxItems(-1);
72-
$this->cloner->addCasters(self::getCasters());
72+
$this->cloner->addCasters($this->getCasters());
7373
} else {
7474
@trigger_error(sprintf('Using the %s() method without the VarDumper component is deprecated since version 3.2 and won\'t be supported in 4.0. Install symfony/var-dumper version 3.2 or above.', __METHOD__), E_USER_DEPRECATED);
7575
$this->cloner = false;

0 commit comments

Comments
 (0)
0