From 6bf0b859193fe881dc5be5d5f443fc70b1765f25 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 11 Mar 2025 00:29:17 +0100 Subject: [PATCH] Compile: supports visibility modifiers --- compile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile.php b/compile.php index 1267369a..bc09252c 100755 --- a/compile.php +++ b/compile.php @@ -297,7 +297,7 @@ function php_shrink($input) { $doc_comment = true; $token[1] = substr_replace($token[1], "* @version $VERSION\n", -2, 0); } - if ($token[0] == T_VAR) { + if ($token[0] == T_VAR || $token[0] == T_PUBLIC || $token[0] == T_PROTECTED || $token[0] == T_PRIVATE) { $shortening = false; } elseif (!$shortening) { if ($token[1] == ';') {