src/ValueException.php
public static function describe($value): string
    {
        if (is_array($value)) {
            $value = '<array>';
        } elseif (is_object($value) || is_callable($value) || is_iterable($value)) {
            $value = sprintf('<%s>', get_class($value));
        } else {
            $value = (string)$value;
            if (strlen($value) > 30) {
                $value = substr($value, 0, -3) . '...';
            }
            $value = sprintf('"%s"', $value);
        }
        return $value;
    }
public static function describe($value): string
    {
        if (is_array($value)) {
            $value = '<array>';
        } elseif (is_object($value) || is_callable($value) || is_iterable($value)) {
            $value = sprintf('<%s>', get_class($value));
        } else {
            $value = (string)$value;
            if (strlen($value) > 30) {
                $value = substr($value, 0, -3) . '...';
            }
            $value = sprintf('"%s"', $value);
        }
        return $value;
    }
public static function describe ( $ value ) : string { if ( is_array ( $ value ) ) { $ value = '<array>' ; } elseif ( is_object ( $ value ) || is_callable ( $ value ) || is_iterable ( $ value ) ) { $ value = sprintf ( '<%s>' , get_class ( $ value ) ) ; } else { $ value = ( string ) $ value ; if ( strlen ( $ value ) > 30 ) { $ value = substr ( $ value , 0 , - 3 ) . '...' ; } $ value = sprintf ( '"%s"' , $ value ) ; } return $ value ; }
Converts any value into a short descriptive label.

@param $value
@return string
Converts any value into a short descriptive label .