1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 01:24:17 +02:00

Compile: supports visibility modifiers

This commit is contained in:
David Grudl
2025-03-11 00:29:17 +01:00
committed by Jakub Vrána
parent 37e63dd82f
commit 6bf0b85919

View File

@@ -297,7 +297,7 @@ function php_shrink($input) {
$doc_comment = true; $doc_comment = true;
$token[1] = substr_replace($token[1], "* @version $VERSION\n", -2, 0); $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; $shortening = false;
} elseif (!$shortening) { } elseif (!$shortening) {
if ($token[1] == ';') { if ($token[1] == ';') {