Use Call::fromCall() in Visitor::visitCall() irrespective of calling function name

This commit is contained in:
raviks789 2022-07-12 13:57:06 +02:00
parent ff551392c7
commit 2c3bc6ea95

View File

@ -65,11 +65,9 @@ CSS;
public function visitCall($c) public function visitCall($c)
{ {
if ($c->name !== 'var') {
// We need to use our own tree call class , so that we can precompile the arguments before making // We need to use our own tree call class , so that we can precompile the arguments before making
// the actual LESS function calls. Otherwise, it will produce lots of invalid argument exceptions! // the actual LESS function calls. Otherwise, it will produce lots of invalid argument exceptions!
$c = Call::fromCall($c); $c = Call::fromCall($c);
}
return $c; return $c;
} }