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

Compile: Fix shortening in protected functions

This commit is contained in:
Jakub Vrana
2025-03-11 17:56:21 +01:00
parent 8b4c8b0156
commit 2ee4e3b2e1

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 || $token[0] == T_PUBLIC || $token[0] == T_PROTECTED || $token[0] == T_PRIVATE && $tokens[$i+2][1][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) {
$token[1] = 'var';
}