From edae44feb360bbc35a78455870581fc7d934e296 Mon Sep 17 00:00:00 2001 From: zigzagdev Date: Fri, 24 Apr 2026 13:27:02 +0900 Subject: [PATCH] Fix incorrect strpos check in triggerTagNoCache Using `!strpos(...)` incorrectly evaluates to true when `(` is at position 0, causing the nocache flag logic to be skipped. Replace with `strpos(...) === false` for correct behavior. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/Compiler/Template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compiler/Template.php b/src/Compiler/Template.php index efc52162b..a985eed5c 100644 --- a/src/Compiler/Template.php +++ b/src/Compiler/Template.php @@ -506,7 +506,7 @@ public function compileModifier($modifierlist, $value) { * @return string */ public function triggerTagNoCache($variable): void { - if (!strpos($variable, '(')) { + if (strpos($variable, '(') === false) { // not a variable variable $var = trim($variable, '\''); $this->tag_nocache = $this->tag_nocache |