1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-07 07:06:45 +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;
$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] == ';') {