mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-18 03:05:11 +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',
|
8 => 'NET_SFTP_TYPE_BLOCK_DEVICE',
|
||||||
9 => 'NET_SFTP_TYPE_FIFO'
|
9 => 'NET_SFTP_TYPE_FIFO'
|
||||||
];
|
];
|
||||||
$this->define_array(
|
self::define_array(
|
||||||
$this->packet_types,
|
$this->packet_types,
|
||||||
$this->status_codes,
|
$this->status_codes,
|
||||||
$this->attributes,
|
$this->attributes,
|
||||||
|
@ -1157,7 +1157,7 @@ class SSH2
|
|||||||
1 => 'NET_SSH2_EXTENDED_DATA_STDERR'
|
1 => 'NET_SSH2_EXTENDED_DATA_STDERR'
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->define_array(
|
self::define_array(
|
||||||
$this->message_numbers,
|
$this->message_numbers,
|
||||||
$this->disconnect_reasons,
|
$this->disconnect_reasons,
|
||||||
$this->channel_open_failure_reasons,
|
$this->channel_open_failure_reasons,
|
||||||
@ -4506,7 +4506,7 @@ class SSH2
|
|||||||
* @param mixed[] ...$args
|
* @param mixed[] ...$args
|
||||||
* @access protected
|
* @access protected
|
||||||
*/
|
*/
|
||||||
protected function define_array(...$args)
|
protected static function define_array(...$args)
|
||||||
{
|
{
|
||||||
foreach ($args as $arg) {
|
foreach ($args as $arg) {
|
||||||
foreach ($arg as $key => $value) {
|
foreach ($arg as $key => $value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user