access $disconnect_reasons using self instead of static

This commit is contained in:
MarkLittlewood 2023-10-18 15:25:41 +01:00
parent 967210fb46
commit eb04913463
1 changed files with 1 additions and 1 deletions

View File

@ -3728,7 +3728,7 @@ class SSH2
case NET_SSH2_MSG_DISCONNECT:
Strings::shift($payload, 1);
list($reason_code, $message) = Strings::unpackSSH2('Ns', $payload);
$this->errors[] = 'SSH_MSG_DISCONNECT: ' . static::$disconnect_reasons[$reason_code] . "\r\n$message";
$this->errors[] = 'SSH_MSG_DISCONNECT: ' . self::$disconnect_reasons[$reason_code] . "\r\n$message";
$this->bitmap = 0;
return false;
case NET_SSH2_MSG_IGNORE: