From a6d7e7165e21ed375c6707066d5f7b84ba0741db Mon Sep 17 00:00:00 2001 From: Anton Vasiliev <1695147@gmail.com> Date: Mon, 21 Oct 2024 21:50:07 +0100 Subject: [PATCH] Fix expression code for `PHVOLT_T_NOT` --- src/Compiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compiler.php b/src/Compiler.php index c7f504c..afdeb5c 100644 --- a/src/Compiler.php +++ b/src/Compiler.php @@ -1638,7 +1638,7 @@ final public function expression(array $expr, bool $doubleQuotes = false): strin switch ($type) { case static::PHVOLT_T_NOT: - $exprCode = '|' . $rightCode; + $exprCode = '!' . $rightCode; break; case static::PHVOLT_T_MUL: