Open torunar opened 6 years ago
Minimal working example:
$less = <<<LESS @bg: url(http://via.placeholder.com/350x150); .foo { background: @bg; } LESS; $parser = new \Less_Parser(); $parser->parse($less); $css = $parser->getCss(); $variables = $parser->getVariables();
Running the following code results in
Exception: type missing in switch/case getVariableValue for Url in /srv/www/cscart.dev/app/lib/vendor/oyejorge/less.php/lib/Less/Parser.php on line 351
CSS, however, is compiled properly:
.foo { background: url(http://via.placeholder.com/350x150); }
Minimal working example:
Running the following code results in
CSS, however, is compiled properly: