Symfony\Component\HttpKernel\DataCollector\DataCollector::varToString PHP Méthode

varToString() protected méthode

Converts a PHP variable to a string.
Deprecation: Deprecated since version 3.2, to be removed in 4.0. Use cloneVar() instead.
protected varToString ( mixed $var ) : string
$var mixed A PHP variable
Résultat string The string representation of the variable
    protected function varToString($var)
    {
        @trigger_error(sprintf('The %() method is deprecated since version 3.2 and will be removed in 4.0. Use cloneVar() instead.', __METHOD__), E_USER_DEPRECATED);

        if (null === $this->valueExporter) {
            $this->valueExporter = new ValueExporter();
        }

        return $this->valueExporter->exportValue($var);
    }