From 2f769c294c331da07d987239e9db1697b0abe8b9 Mon Sep 17 00:00:00 2001 From: bzick Date: Thu, 22 Jan 2015 13:55:22 +0300 Subject: [PATCH] Fix: parse error then modifier's argument converts to false --- 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 441aaf6..e80f735 100644 --- a/src/Fenom/Template.php +++ b/src/Fenom/Template.php @@ -1244,7 +1244,7 @@ class Template extends Render $args = array(); while ($tokens->is(":")) { - if (!$args[] = $this->parseTerm($tokens->next())) { + if (($args[] = $this->parseTerm($tokens->next())) === false) { throw new UnexpectedTokenException($tokens); } }