From 2c3bc6ea95f37055a2c14dfa9f0b0fc9cf7e3290 Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Tue, 12 Jul 2022 13:57:06 +0200 Subject: [PATCH] Use `Call::fromCall()` in `Visitor::visitCall()` irrespective of calling function name --- library/Icinga/Less/Visitor.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/library/Icinga/Less/Visitor.php b/library/Icinga/Less/Visitor.php index 2b574febf..2a0853b24 100644 --- a/library/Icinga/Less/Visitor.php +++ b/library/Icinga/Less/Visitor.php @@ -65,11 +65,9 @@ CSS; 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 - // the actual LESS function calls. Otherwise, it will produce lots of invalid argument exceptions! - $c = Call::fromCall($c); - } + // 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! + $c = Call::fromCall($c); return $c; }