[Profiler] Fix data collector getCasters() call
This commit is contained in:
parent
54435997ee
commit
34e7094d3d
@ -16,7 +16,6 @@ use Symfony\Component\Form\FormView;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
|
||||
use Symfony\Component\HttpKernel\DataCollector\Util\ValueExporter;
|
||||
use Symfony\Component\Validator\ConstraintViolationInterface;
|
||||
use Symfony\Component\VarDumper\Caster\Caster;
|
||||
use Symfony\Component\VarDumper\Caster\ClassStub;
|
||||
@ -68,11 +67,6 @@ class FormDataCollector extends DataCollector implements FormDataCollectorInterf
|
||||
*/
|
||||
private $formsByView;
|
||||
|
||||
/**
|
||||
* @var ValueExporter
|
||||
*/
|
||||
private $valueExporter;
|
||||
|
||||
private $hasVarDumper;
|
||||
|
||||
public function __construct(FormDataExtractorInterface $dataExtractor)
|
||||
|
@ -69,7 +69,7 @@ abstract class DataCollector implements DataCollectorInterface, \Serializable
|
||||
if (class_exists(CutStub::class)) {
|
||||
$this->cloner = new VarCloner();
|
||||
$this->cloner->setMaxItems(-1);
|
||||
$this->cloner->addCasters(self::getCasters());
|
||||
$this->cloner->addCasters($this->getCasters());
|
||||
} else {
|
||||
@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);
|
||||
$this->cloner = false;
|
||||
|
Reference in New Issue
Block a user