Skip to content

Commit

Permalink
Added some PHPDoc fixes according to use cases from the docs (https:/…
Browse files Browse the repository at this point in the history
…/phpseclib.com/docs/sftp) to satisfy PHPStan
  • Loading branch information
MathObsessed authored and terrafrost committed Mar 10, 2021
1 parent 70bc5d0 commit 906a5fa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions phpseclib/Net/SFTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@

namespace phpseclib3\Net;

use ParagonIE\ConstantTime\Hex;
use phpseclib3\Exception\FileNotFoundException;
use phpseclib3\Common\Functions\Strings;
use phpseclib3\Crypt\Common\AsymmetricKey;
use phpseclib3\System\SSH\Agent;

/**
* Pure-PHP implementations of SFTP.
Expand Down Expand Up @@ -430,7 +431,7 @@ public function __construct($host, $port = 22, $timeout = 10)
* Login
*
* @param string $username
* @param string[] ...$args
* @param string|AsymmetricKey|array[]|Agent|null ...$args
* @throws \UnexpectedValueException on receipt of unexpected packets
* @return bool
* @access public
Expand Down Expand Up @@ -2096,7 +2097,7 @@ private function close_handle($handle)
* $offset and $length can be used to download files in chunks.
*
* @param string $remote_file
* @param string|bool|resource $local_file
* @param string|bool|resource|callable $local_file
* @param int $offset
* @param int $length
* @param callable|null $progressCallback
Expand Down

0 comments on commit 906a5fa

Please sign in to comment.