From 314f41e71f9fdcb7c2d8cb752a4a7c946b79289a Mon Sep 17 00:00:00 2001 From: Vesko Kenashkov Date: Wed, 31 Jul 2019 18:49:11 +0300 Subject: [PATCH] - fix in parseContext() - will handle properly variables with NULL value --- src/FunctionParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FunctionParser.php b/src/FunctionParser.php index 24ae3af..b81bbae 100644 --- a/src/FunctionParser.php +++ b/src/FunctionParser.php @@ -376,7 +376,7 @@ protected function parseContext() // Construct the context by combining the variable names and values foreach ($variable_names as $variable_name) { - if (isset($variable_values[$variable_name])) + if (array_key_exists($variable_name, $variable_values)) { $context[$variable_name] = $variable_values[$variable_name]; }