type hint fixes

This commit is contained in:
Robin Appelman 2021-03-02 19:17:37 +01:00
commit 0e69997579
11 changed files with 17 additions and 29 deletions

View file

@ -91,13 +91,13 @@ class Parser {
/**
* check if the first line holds a connection failure
*
* @param $line
* @param string $line
* @throws AuthenticationException
* @throws InvalidHostException
* @throws NoLoginServerException
* @throws AccessDeniedException
*/
public function checkConnectionError($line) {
public function checkConnectionError(string $line) {
$line = rtrim($line, ')');
if (substr($line, -23) === ErrorCodes::LogonFailure) {
throw new AuthenticationException('Invalid login');