mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 19:54:57 +00:00
SSH/SFTP: make define_array static
This commit is contained in:
parent
0f8bc61538
commit
9705cbbc26
@ -500,7 +500,7 @@ class SFTP extends SSH2
|
||||
8 => 'NET_SFTP_TYPE_BLOCK_DEVICE',
|
||||
9 => 'NET_SFTP_TYPE_FIFO'
|
||||
];
|
||||
$this->define_array(
|
||||
self::define_array(
|
||||
$this->packet_types,
|
||||
$this->status_codes,
|
||||
$this->attributes,
|
||||
|
@ -1157,7 +1157,7 @@ class SSH2
|
||||
1 => 'NET_SSH2_EXTENDED_DATA_STDERR'
|
||||
];
|
||||
|
||||
$this->define_array(
|
||||
self::define_array(
|
||||
$this->message_numbers,
|
||||
$this->disconnect_reasons,
|
||||
$this->channel_open_failure_reasons,
|
||||
@ -4506,7 +4506,7 @@ class SSH2
|
||||
* @param mixed[] ...$args
|
||||
* @access protected
|
||||
*/
|
||||
protected function define_array(...$args)
|
||||
protected static function define_array(...$args)
|
||||
{
|
||||
foreach ($args as $arg) {
|
||||
foreach ($arg as $key => $value) {
|
||||
|
Loading…
Reference in New Issue
Block a user