diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 5e8c121f..b5360a3a 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -1260,7 +1260,7 @@ class SSH2 $c2s_compression_algorithms = $preferred['client_to_server']['comp'] ?? SSH2::getSupportedCompressionAlgorithms(); - $kex_algorithms = array_merge($kex_algorithms, array('ext-info-c')); + $kex_algorithms = array_merge($kex_algorithms, ['ext-info-c']); // some SSH servers have buggy implementations of some of the above algorithms switch (true) {