From 27f4ba550209516144dc0823046717cbe26ba027 Mon Sep 17 00:00:00 2001 From: "Tsz-Yu WONG, Prince" Date: Thu, 29 Aug 2024 16:33:05 +0800 Subject: [PATCH] add hidden directive --- Compilers/Concerns/CompilesConditionals.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Compilers/Concerns/CompilesConditionals.php b/Compilers/Concerns/CompilesConditionals.php index b26494e82..a2b8b3cc8 100644 --- a/Compilers/Concerns/CompilesConditionals.php +++ b/Compilers/Concerns/CompilesConditionals.php @@ -406,4 +406,15 @@ protected function compileEndPushIf() { return 'stopPush(); endif; ?>'; } + + /** + * Compile a readonly block into valid PHP. + * + * @param string $condition + * @return string + */ + protected function compileHidden($condition) + { + return ""; + } }