Skip to content

Commit

Permalink
SSH2/SFTP: tweak docblock comments for getLastError() / etc
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Feb 8, 2024
1 parent db27873 commit a69364d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions phpseclib/Net/SFTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -3844,7 +3844,7 @@ function getSFTPLog()
}

/**
* Returns all errors
* Returns all errors on the SFTP layer
*
* @return array
* @access public
Expand All @@ -3855,7 +3855,7 @@ function getSFTPErrors()
}

/**
* Returns the last error
* Returns the last error on the SFTP layer
*
* @return string
* @access public
Expand Down
8 changes: 6 additions & 2 deletions phpseclib/Net/SSH2.php
Original file line number Diff line number Diff line change
Expand Up @@ -4714,7 +4714,9 @@ function _array_intersect_first($array1, $array2)
}

/**
* Returns all errors
* Returns all errors / debug messages on the SSH layer
*
* If you are looking for messages from the SFTP layer, please see SFTP::getSFTPErrors()
*
* @return string[]
* @access public
Expand All @@ -4725,7 +4727,9 @@ function getErrors()
}

/**
* Returns the last error
* Returns the last error received on the SSH layer
*
* If you are looking for messages from the SFTP layer, please see SFTP::getLastSFTPError()
*
* @return string
* @access public
Expand Down

1 comment on commit a69364d

@terrafrost
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1980

Please sign in to comment.