1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-07 07:06:45 +02:00

Compile: Change public to var

This commit is contained in:
Jakub Vrana
2025-03-11 07:16:04 +01:00
parent b017928256
commit 1b0984ff31

View File

@@ -298,6 +298,9 @@ function php_shrink($input) {
$token[1] = substr_replace($token[1], "* @version $VERSION\n", -2, 0);
}
if ($token[0] == T_VAR || $token[0] == T_PUBLIC || $token[0] == T_PROTECTED || $token[0] == T_PRIVATE) {
if ($token[0] == T_PUBLIC && $tokens[$i+2][1][0] == '$') {
$token[1] = 'var';
}
$shortening = false;
} elseif (!$shortening) {
if ($token[1] == ';') {