visibility changes for phpseclib2_compat

This commit is contained in:
terrafrost 2019-12-30 22:19:07 -06:00
parent be221d8b23
commit a7b1d031bb
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ abstract class PuTTY
* @param string $password * @param string $password
* @return array * @return array
*/ */
protected static function load($key, $password) public static function load($key, $password)
{ {
if (!is_string($key)) { if (!is_string($key)) {
throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key)); throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key));

View File

@ -152,7 +152,7 @@ class Stream
* @return string * @return string
* @access private * @access private
*/ */
private function parse_path($path) protected function parse_path($path)
{ {
$orig = $path; $orig = $path;
extract(parse_url($path) + ['port' => 22]); extract(parse_url($path) + ['port' => 22]);