1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-05 14:17:26 +02:00

Compile: Support private static

This commit is contained in:
Jakub Vrana
2025-03-12 05:03:42 +01:00
parent 2fdebfda29
commit 5504a617d0

View File

@@ -297,13 +297,13 @@ function php_shrink($input) {
$doc_comment = true;
$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) && $tokens[$i+2][1][0] == '$') {
if ($token[0] == T_PUBLIC) {
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] == ';') {
if ($token[1] == ';' || $token[0] == T_FUNCTION) {
$shortening = true;
}
} elseif ($token[0] == T_ECHO) {