]> git.joonet.de Git - adminer.git/commitdiff
Compile: supports visibility modifiers
authorDavid Grudl <david@grudl.com>
Mon, 10 Mar 2025 23:29:17 +0000 (00:29 +0100)
committerJakub Vrána <jakub@vrana.cz>
Tue, 11 Mar 2025 05:24:07 +0000 (06:24 +0100)
compile.php

index 1267369abe47828972bce03b354c4f60b2225cc6..bc09252cb7bc63997dfccdc0a5391353fc6b2dc3 100755 (executable)
@@ -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] == ';') {