SSH/SFTP: make define_array static

This commit is contained in:
terrafrost 2023-03-23 12:23:43 -05:00
parent 0f8bc61538
commit 9705cbbc26
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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) {