Leafo\ScssPhp\Compiler::coerceString PHP Method

coerceString() protected method

Coerce value to string
protected coerceString ( array $value ) : array | null
$value array
return array | null
    protected function coerceString($value)
    {
        if ($value[0] === Type::T_STRING) {
            return $value;
        }
        return [Type::T_STRING, '', [$this->compileValue($value)]];
    }
Compiler