From 89f2e23750408cf10e375d60a617210f9b762e7e Mon Sep 17 00:00:00 2001 From: bzick Date: Mon, 2 Feb 2015 11:49:42 +0300 Subject: [PATCH] Fix #144: forgot prepend unary operator --- src/Fenom/Template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fenom/Template.php b/src/Fenom/Template.php index e80f735..c8d61e3 100644 --- a/src/Fenom/Template.php +++ b/src/Fenom/Template.php @@ -780,7 +780,7 @@ class Template extends Render if ($this->_options & Fenom::DENY_METHODS) { throw new \LogicException("Forbidden to call methods"); } - return $this->parseChain($tokens, $code); + return $unary . $this->parseChain($tokens, $code); } elseif ($tokens->is(Tokenizer::MACRO_INCDEC)) { if($this->_options & Fenom::FORCE_VERIFY) { return $unary . '(isset(' . $code . ') ? ' . $code . $tokens->getAndNext() . ' : null)';