Symfony\Component\Validator\ConstraintValidator::formatTypeOf PHP Метод

formatTypeOf() защищенный Метод

This method should be used if you pass the type of a value as message parameter to a constraint violation. Note that such parameters should usually not be included in messages aimed at non-technical people.
protected formatTypeOf ( mixed $value ) : string
$value mixed The value to return the type of
Результат string The type of the value
    protected function formatTypeOf($value)
    {
        return is_object($value) ? get_class($value) : gettype($value);
    }